
/****** Object:  Table [dbo].[ApiSerialNumbers]    Script Date: 06.09.2021 20:25:58 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[ApiSerialNumbers](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[SN] [nvarchar](max) NULL,
	[SN2] [nvarchar](max) NULL,
	[ElementId] [int] NOT NULL,
	[DocumentId] [int] NOT NULL,
	[ItemId] [int] NOT NULL,
	[NadrzId] [int] NOT NULL,
	[NadrzNumer] [nvarchar](max) NULL,
	[NadrzInfo] [nvarchar](max) NULL,
	[TS] [datetime] NOT NULL,
	[State] [int] NOT NULL,
	ObjectType int not null
 CONSTRAINT [PK_dbo.ApiSerialNumbers] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO


