
/****** Object:  Table [dbo].[ApiObjectRelations]    Script Date: 06.09.2021 20:36:33 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[ApiObjectRelations](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[ObjectType] [int] NOT NULL,
	[ObjectId] [int] NOT NULL,
	[Description] [nvarchar](max) NULL,
	[TS] [datetime] NOT NULL,
	[RelObjectId] [int] NOT NULL,
	[RelObjectType] [int] NOT NULL,
	[OperatorId] [int] NOT NULL,
	[Value] [decimal](18, 2) NOT NULL,
	[HistoryParentId] [int] NOT NULL,
 CONSTRAINT [PK_dbo.ApiObjectRelations] 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


