
/****** Object:  Table [dbo].[ApiDictionaries]    Script Date: 06.09.2021 20:46:47 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[ApiDictionaries](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[ParentDefId] [int] NOT NULL,
	[ParentType] [int] NOT NULL,
	[Lp] [int] NOT NULL,
	[Value] [nvarchar](max) NULL,
	[NumberValue] [decimal](18, 2) NOT NULL,
	[Active] [bit] NOT NULL,
	[ErpId] [int] NOT NULL,
	[Color] [nvarchar](50) NULL,
	[Icon] [nvarchar](50) NULL,
	[Permission] [int] NOT NULL,
	[ErpKey] [nvarchar](50) NULL,
	[OperatorId] [int] NOT NULL,
	[OperatorAlgorithm] [nvarchar](max) NULL,
 CONSTRAINT [PK_dbo.ApiDictionaries] 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

ALTER TABLE [dbo].[ApiDictionaries] ADD  DEFAULT ((0)) FOR [Permission]
GO

ALTER TABLE [dbo].[ApiDictionaries] ADD  DEFAULT ((0)) FOR [OperatorId]
GO


