Tables [dbo].[ICPhysicalInventoryLists]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created12:57:39 AM Thursday, March 21, 2019
Last Modified1:11:46 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_ICPhysicalInventoryLists: PhysicalInventoryListIDPhysicalInventoryListIDint4
False
1 - 1
PhysicalInventoryNovarchar(15)15
False
Descriptionvarchar(255)255
False
Foreign Keys FK_ICPhysicalInventoryLists_BranchID_GLBranches: [dbo].[GLBranches].BranchIDBranchIDint4
False
Foreign Keys FK_ICPhysicalInventoryLists_StatusID_ICPhysicalInventoryListStatuses: [dbo].[ICPhysicalInventoryListStatuses].StatusIDStatusIDint4
False
ItemsPerSheetint4
False
Foreign Keys FK_ICPhysicalInventoryLists_AdjustmentCodeID_ICAdjustmentCodes: [dbo].[ICAdjustmentCodes].AdjustmentCodeIDAdjustmentCodeIDint4
False
CreatorIDchar(8)8
False
UpdatorIDchar(8)8
False
CreateDatedatetime8
False
(getdate())
LastUpdatedatetime8
False
(getdate())
Batchvarchar(15)15
False
('')
ReduceQuantityOnHandByAllocatedbit1
False
((0))
Foreign Keys FK_ICPhysicalInventoryLists_WarehouseID_ICWarehouses: [dbo].[ICWarehouses].WarehouseIDWarehouseIDint4
True
KeyNameKey ColumnsUniqueFill Factor
Cluster Primary Key PK_ICPhysicalInventoryLists: PhysicalInventoryListIDPK_ICPhysicalInventoryListsPhysicalInventoryListID
True
80
NameColumns
FK_ICPhysicalInventoryLists_AdjustmentCodeID_ICAdjustmentCodesAdjustmentCodeID->[dbo].[ICAdjustmentCodes].[AdjustmentCodeID]
FK_ICPhysicalInventoryLists_BranchID_GLBranchesBranchID->[dbo].[GLBranches].[BranchID]
FK_ICPhysicalInventoryLists_StatusID_ICPhysicalInventoryListStatusesStatusID->[dbo].[ICPhysicalInventoryListStatuses].[StatusID]
FK_ICPhysicalInventoryLists_WarehouseID_ICWarehousesWarehouseID->[dbo].[ICWarehouses].[WarehouseID]
CREATE TABLE [dbo].[ICPhysicalInventoryLists]
(
[PhysicalInventoryListID] [int] NOT NULL IDENTITY(1, 1),
[PhysicalInventoryNo] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Description] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[BranchID] [int] NOT NULL,
[StatusID] [int] NOT NULL,
[ItemsPerSheet] [int] NOT NULL,
[AdjustmentCodeID] [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_ICPhysicalInventoryLists_CreateDate] DEFAULT (getdate()),
[LastUpdate] [datetime] NOT NULL CONSTRAINT [DF_ICPhysicalInventoryLists_LastUpdate] DEFAULT (getdate()),
[Batch] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL CONSTRAINT [DF_ICPhysicalInventoryLists_Batch] DEFAULT (''),
[ReduceQuantityOnHandByAllocated] [bit] NOT NULL CONSTRAINT [DF_ICPhysicalInventoryLists_ReduceQuantityOnHandByAllocated] DEFAULT ((0)),
[WarehouseID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ICPhysicalInventoryLists] ADD CONSTRAINT [PK_ICPhysicalInventoryLists] PRIMARY KEY CLUSTERED  ([PhysicalInventoryListID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ICPhysicalInventoryLists] ADD CONSTRAINT [FK_ICPhysicalInventoryLists_AdjustmentCodeID_ICAdjustmentCodes] FOREIGN KEY ([AdjustmentCodeID]) REFERENCES [dbo].[ICAdjustmentCodes] ([AdjustmentCodeID])
GO
ALTER TABLE [dbo].[ICPhysicalInventoryLists] ADD CONSTRAINT [FK_ICPhysicalInventoryLists_BranchID_GLBranches] FOREIGN KEY ([BranchID]) REFERENCES [dbo].[GLBranches] ([BranchID])
GO
ALTER TABLE [dbo].[ICPhysicalInventoryLists] ADD CONSTRAINT [FK_ICPhysicalInventoryLists_StatusID_ICPhysicalInventoryListStatuses] FOREIGN KEY ([StatusID]) REFERENCES [dbo].[ICPhysicalInventoryListStatuses] ([StatusID])
GO
ALTER TABLE [dbo].[ICPhysicalInventoryLists] ADD CONSTRAINT [FK_ICPhysicalInventoryLists_WarehouseID_ICWarehouses] FOREIGN KEY ([WarehouseID]) REFERENCES [dbo].[ICWarehouses] ([WarehouseID])
GO