Tables [dbo].[ICItemSubstitutes]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created12:57:31 AM Thursday, March 21, 2019
Last Modified1:11:29 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key PK_ICItemSubstitutes: ItemID\SubstituteIDForeign Keys FK_ICItemSubstitutes_ItemID_ICItems: [dbo].[ICItems].ItemIDItemIDint4
False
Cluster Primary Key PK_ICItemSubstitutes: ItemID\SubstituteIDForeign Keys FK_ICItemSubstitutes_SubstituteID_ICItems: [dbo].[ICItems].SubstituteIDSubstituteIDint4
False
CreatorIDchar(8)8
False
UpdatorIDchar(8)8
False
CreateDatedatetime8
False
(getdate())
LastUpdatedatetime8
False
(getdate())
timestamptimestamp8
True
KeyNameKey ColumnsUniqueFill Factor
Cluster Primary Key PK_ICItemSubstitutes: ItemID\SubstituteIDPK_ICItemSubstitutesItemID, SubstituteID
True
80
NameColumns
FK_ICItemSubstitutes_ItemID_ICItemsItemID->[dbo].[ICItems].[ItemID]
FK_ICItemSubstitutes_SubstituteID_ICItemsSubstituteID->[dbo].[ICItems].[ItemID]
CREATE TABLE [dbo].[ICItemSubstitutes]
(
[ItemID] [int] NOT NULL,
[SubstituteID] [int] NOT NULL,
[CreatorID] [char] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[UpdatorID] [char] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CreateDate] [datetime] NOT NULL CONSTRAINT [DF_ICItemSubstitutes_CreateDate] DEFAULT (getdate()),
[LastUpdate] [datetime] NOT NULL CONSTRAINT [DF_ICItemSubstitutes_LastUpdate] DEFAULT (getdate()),
[timestamp] [timestamp] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ICItemSubstitutes] ADD CONSTRAINT [PK_ICItemSubstitutes] PRIMARY KEY CLUSTERED  ([ItemID], [SubstituteID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ICItemSubstitutes] ADD CONSTRAINT [FK_ICItemSubstitutes_ItemID_ICItems] FOREIGN KEY ([ItemID]) REFERENCES [dbo].[ICItems] ([ItemID])
GO
ALTER TABLE [dbo].[ICItemSubstitutes] ADD CONSTRAINT [FK_ICItemSubstitutes_SubstituteID_ICItems] FOREIGN KEY ([SubstituteID]) REFERENCES [dbo].[ICItems] ([ItemID])
GO