Tables [dbo].[ICMfgBins]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created12:57:36 AM Thursday, March 21, 2019
Last Modified1:11:36 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_ICMfgBins: MfgID\WarehouseID\BinIDForeign Keys FK_ICMfgBins_MfgID_ICMfgs: [dbo].[ICMfgs].MfgIDMfgIDint4
False
Cluster Primary Key PK_ICMfgBins: MfgID\WarehouseID\BinIDForeign Keys FK_ICMfgBins_WarehouseID_ICWarehouses: [dbo].[ICWarehouses].WarehouseIDWarehouseIDint4
False
Cluster Primary Key PK_ICMfgBins: MfgID\WarehouseID\BinIDForeign Keys FK_ICMfgBins_BinID_ICBins: [dbo].[ICBins].BinIDBinIDint4
False
Quantitydecimal(18,6)9
False
CreatorIDchar(8)8
False
UpdatorIDchar(8)8
False
CreateDatedatetime8
False
(getdate())
LastUpdatedatetime8
False
(getdate())
timestamptimestamp8
True
Costmoney8
False
((0))
InventoryAmountmoney8
False
((0))
AdjAmountmoney8
False
((0))
MfgBinIDint4
False
1 - 1
Foreign Keys FK_ICMfgBins_BranchID_GLBranches: [dbo].[GLBranches].BranchIDBranchIDint4
False
Foreign Keys FK_ICMfgBins_DivisionID_GLDivisions: [dbo].[GLDivisions].DivisionIDDivisionIDint4
False
Foreign Keys FK_ICMfgBins_BalanceSheetGroupID_GLBalanceSheetGroups: [dbo].[GLBalanceSheetGroups].BalanceSheetGroupIDBalanceSheetGroupIDint4
False
Foreign Keys FK_ICMfgBins_IntercompanyGLID_GLAccounts: [dbo].[GLAccounts].IntercompanyGLIDIntercompanyGLIDint4
True
AssetCostOrBasisAmountmoney8
False
((0))
AssetAccumDeprAmountmoney8
False
((0))
KeyNameKey ColumnsUniqueFill Factor
Cluster Primary Key PK_ICMfgBins: MfgID\WarehouseID\BinIDPK_ICMfgBinsMfgID, WarehouseID, BinID
True
80
NameColumns
FK_ICMfgBins_BalanceSheetGroupID_GLBalanceSheetGroupsBalanceSheetGroupID->[dbo].[GLBalanceSheetGroups].[BalanceSheetGroupID]
FK_ICMfgBins_BinID_ICBinsBinID->[dbo].[ICBins].[BinID]
FK_ICMfgBins_BranchID_GLBranchesBranchID->[dbo].[GLBranches].[BranchID]
FK_ICMfgBins_DivisionID_GLDivisionsDivisionID->[dbo].[GLDivisions].[DivisionID]
FK_ICMfgBins_IntercompanyGLID_GLAccountsIntercompanyGLID->[dbo].[GLAccounts].[AccountID]
FK_ICMfgBins_MfgID_ICMfgsMfgID->[dbo].[ICMfgs].[MfgID]
FK_ICMfgBins_WarehouseID_ICWarehousesWarehouseID->[dbo].[ICWarehouses].[WarehouseID]
CREATE TABLE [dbo].[ICMfgBins]
(
[MfgID] [int] NOT NULL,
[WarehouseID] [int] NOT NULL,
[BinID] [int] NOT NULL,
[Quantity] [decimal] (18, 6) 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_ICMfgBins_CreateDate] DEFAULT (getdate()),
[LastUpdate] [datetime] NOT NULL CONSTRAINT [DF_ICMfgBins_LastUpdate] DEFAULT (getdate()),
[timestamp] [timestamp] NULL,
[Cost] [money] NOT NULL CONSTRAINT [DF_ICMfgBins_Cost] DEFAULT ((0)),
[InventoryAmount] [money] NOT NULL CONSTRAINT [DF_ICMfgBins_InventoryAmount] DEFAULT ((0)),
[AdjAmount] [money] NOT NULL CONSTRAINT [DF_ICMfgBins_AdjAmount] DEFAULT ((0)),
[MfgBinID] [int] NOT NULL IDENTITY(1, 1),
[BranchID] [int] NOT NULL,
[DivisionID] [int] NOT NULL,
[BalanceSheetGroupID] [int] NOT NULL,
[IntercompanyGLID] [int] NULL,
[AssetCostOrBasisAmount] [money] NOT NULL CONSTRAINT [DF_ICMfgBins_AssetCostOrBasisAmount] DEFAULT ((0)),
[AssetAccumDeprAmount] [money] NOT NULL CONSTRAINT [DF_ICMfgBins_AssetAccumDeprAmount] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ICMfgBins] ADD CONSTRAINT [PK_ICMfgBins] PRIMARY KEY CLUSTERED  ([MfgID], [WarehouseID], [BinID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ICMfgBins] ADD CONSTRAINT [FK_ICMfgBins_BalanceSheetGroupID_GLBalanceSheetGroups] FOREIGN KEY ([BalanceSheetGroupID]) REFERENCES [dbo].[GLBalanceSheetGroups] ([BalanceSheetGroupID])
GO
ALTER TABLE [dbo].[ICMfgBins] ADD CONSTRAINT [FK_ICMfgBins_BinID_ICBins] FOREIGN KEY ([BinID]) REFERENCES [dbo].[ICBins] ([BinID])
GO
ALTER TABLE [dbo].[ICMfgBins] ADD CONSTRAINT [FK_ICMfgBins_BranchID_GLBranches] FOREIGN KEY ([BranchID]) REFERENCES [dbo].[GLBranches] ([BranchID])
GO
ALTER TABLE [dbo].[ICMfgBins] ADD CONSTRAINT [FK_ICMfgBins_DivisionID_GLDivisions] FOREIGN KEY ([DivisionID]) REFERENCES [dbo].[GLDivisions] ([DivisionID])
GO
ALTER TABLE [dbo].[ICMfgBins] ADD CONSTRAINT [FK_ICMfgBins_IntercompanyGLID_GLAccounts] FOREIGN KEY ([IntercompanyGLID]) REFERENCES [dbo].[GLAccounts] ([AccountID])
GO
ALTER TABLE [dbo].[ICMfgBins] ADD CONSTRAINT [FK_ICMfgBins_MfgID_ICMfgs] FOREIGN KEY ([MfgID]) REFERENCES [dbo].[ICMfgs] ([MfgID])
GO
ALTER TABLE [dbo].[ICMfgBins] ADD CONSTRAINT [FK_ICMfgBins_WarehouseID_ICWarehouses] FOREIGN KEY ([WarehouseID]) REFERENCES [dbo].[ICWarehouses] ([WarehouseID])
GO