Tables [dbo].[ICInventoryCodes]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created12:56:03 AM Thursday, March 21, 2019
Last Modified1:11:26 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key PK_ICInventoryCodes: InventoryCodeIDInventoryCodeIDint4
False
InventoryCodevarchar(15)15
False
Descriptionvarchar(50)50
False
Foreign Keys FK_ICInventoryCodes_InventoryGLID_GLAccounts2: [dbo].[GLAccounts2].InventoryGLIDInventoryGLIDint4
False
Foreign Keys FK_ICInventoryCodes_InventoryDeptID_GLDepts2: [dbo].[GLDepts2].InventoryDeptIDInventoryDeptIDint4
True
Foreign Keys FK_ICInventoryCodes_AdjGLID_GLAccounts2: [dbo].[GLAccounts2].AdjGLIDAdjGLIDint4
False
Activebit1
False
Locksint4
False
((0))
CreatorIDchar(8)8
False
UpdatorIDchar(8)8
False
CreateDatedatetime8
False
(getdate())
LastUpdatedatetime8
False
(getdate())
timestamptimestamp8
True
KeyNameKey ColumnsUniqueFill Factor
Cluster Primary Key PK_ICInventoryCodes: InventoryCodeIDPK_ICInventoryCodesInventoryCodeID
True
80
NameColumns
FK_ICInventoryCodes_AdjGLID_GLAccounts2AdjGLID->[dbo].[GLAccounts2].[AccountID]
FK_ICInventoryCodes_InventoryDeptID_GLDepts2InventoryDeptID->[dbo].[GLDepts2].[DeptID]
FK_ICInventoryCodes_InventoryGLID_GLAccounts2InventoryGLID->[dbo].[GLAccounts2].[AccountID]
CREATE TABLE [dbo].[ICInventoryCodes]
(
[InventoryCodeID] [int] NOT NULL,
[InventoryCode] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Description] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[InventoryGLID] [int] NOT NULL,
[InventoryDeptID] [int] NULL,
[AdjGLID] [int] NOT NULL,
[Active] [bit] NOT NULL,
[Locks] [int] NOT NULL CONSTRAINT [DF_ICInventoryCodes_Locks] DEFAULT ((0)),
[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_ICInventoryCodes_CreateDate] DEFAULT (getdate()),
[LastUpdate] [datetime] NOT NULL CONSTRAINT [DF_ICInventoryCodes_LastUpdate] DEFAULT (getdate()),
[timestamp] [timestamp] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ICInventoryCodes] ADD CONSTRAINT [PK_ICInventoryCodes] PRIMARY KEY CLUSTERED  ([InventoryCodeID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ICInventoryCodes] ADD CONSTRAINT [FK_ICInventoryCodes_AdjGLID_GLAccounts2] FOREIGN KEY ([AdjGLID]) REFERENCES [dbo].[GLAccounts2] ([AccountID])
GO
ALTER TABLE [dbo].[ICInventoryCodes] ADD CONSTRAINT [FK_ICInventoryCodes_InventoryDeptID_GLDepts2] FOREIGN KEY ([InventoryDeptID]) REFERENCES [dbo].[GLDepts2] ([DeptID])
GO
ALTER TABLE [dbo].[ICInventoryCodes] ADD CONSTRAINT [FK_ICInventoryCodes_InventoryGLID_GLAccounts2] FOREIGN KEY ([InventoryGLID]) REFERENCES [dbo].[GLAccounts2] ([AccountID])
GO