

/****** Object:  Table [dbo].[ApiItems]    Script Date: 06.09.2021 20:38:53 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[ApiItems](
	[ItemId] [int] IDENTITY(1,1) NOT NULL,
	[ErpId] [int] NOT NULL,
	[ItemType] [int] NOT NULL,
	[Name] [nvarchar](max) NOT NULL,
	[Code] [nvarchar](max) NULL,
	[CatalogNumber] [nvarchar](max) NULL,
	[UM] [nvarchar](max) NULL,
	[UM2] [nvarchar](max) NULL,
	[UMRatio] [decimal](18, 2) NOT NULL,
	[IntegerFormat] [int] NOT NULL,
	[SellPriceNetto] [decimal](18, 2) NOT NULL,
	[SellPriceBrutto] [decimal](18, 2) NOT NULL,
	[MinPriceNetto] [decimal](18, 2) NOT NULL,
	[BuyPrice] [decimal](18, 2) NOT NULL,
	[Quantity] [decimal](18, 2) NOT NULL,
	[Weight] [decimal](18, 2) NOT NULL,
	[TaxDesc] [nvarchar](max) NULL,
	[TaxValue] [decimal](18, 2) NOT NULL,
	[GroupName1] [nvarchar](max) NULL,
	[GroupId1] [int] NOT NULL,
	[GroupName2] [nvarchar](max) NULL,
	[GroupId2] [int] NOT NULL,
	[Status] [int] NOT NULL,
	[Description] [nvarchar](max) NULL,
	[TS] [datetime] NOT NULL,
 CONSTRAINT [PK_dbo.ApiItems] PRIMARY KEY CLUSTERED 
(
	[ItemId] 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


