K_Cehs] PRIMARYKEYCLUSTERED
(
[ID] ASC
) WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON
[ID] [int] IDENTITY (1,1) NOTNULL,
[Name] [nvarchar] (max) NOTNULL, [PK_Measurements] PRIMARYKEYCLUSTERED
(
[ID] ASC
) WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON
[ID] [int] IDENTITY (1,1) NOTNULL,
[Value] [int] NOTNULL,
[ResourceID] [int] NOTNULL,
[ProductID] [int] NOTNULL, [PK_Expenditures] PRIMARYKEYCLUSTERED
(
[ID] ASC
) WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
(SELECT * FROMsys.indexesWHEREobject_id = OBJECT_I (N '[dbo]. [Expenditures]') ANDname = N'IX_FK_ProductExpenditure ') [IX_FK_ProductExpenditure] ON
[dbo]. [Expenditures]
(
[ProductID] ASC
) WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
(SELECT * FROMsys.indexesWHEREobject_id = OBJECT_I (N '[dbo]. [Expenditures]') ANDname = N'IX_FK_ResourceExpenditure ') [IX_FK_ResourceExpenditure] ON
[dbo]. [Expenditures]
(
[ResourceID] ASC
) WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON
[ID] [int] IDENTITY (1,1) NOTNULL,
[Date] [datetime] NOTNULL,
[Quantity] [int] NOTNULL,
[CehID] [int] NOTNULL,
[ProductID] [int] NOTNULL, [PK_Orders] PRIMARYKEYCLUSTERED
(
[ID] ASC
) WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
(SELECT * FROMsys.indexesWHEREobject_id = OBJECT_I (N '[dbo]. [Orders] ") ANDname = N'IX_FK_CehOrder') [IX_FK_CehOrder] ON
[dbo]. [Orders]
(
[CehID] ASC
) WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
(SELECT * FROMsys.indexesWHEREobject_id = OBJECT_I (N '[dbo]. [Orders]') ANDname = N'IX_FK_ProductOrder ') [IX_FK_ProductOrder] ON
[dbo]. [Orders]
(
[ProductID] ASC
) WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON
[ID] [int] IDENTITY (1,1) NOTNULL,
[Name] [nvarchar] (max...