Production.BillOfMaterials Table

Information

NameBillOfMaterials
SchemaProduction
Row Count2679
Data Size160 KB
Index Size200 KB
Reserved Size472 KB
Unused Size112 KB
Created14.10.2005. 1:58:31
Modified2.7.2009. 10:35:10

Extended Properties

NameTypeProperty NameValue
BillOfMaterialsTABLEMS_DescriptionItems required to make bicycles and bicycle subassemblies. It identifies the heirarchical relationship between a parent product and its components.

Columns

PKKeyIdentityNameData TypeAllow NullsCollationReferencesDefaultComputedCompute Expression
   BillOfMaterialsIDint   
 
 
 
   ProductAssemblyIDint  Production.Product.ProductID
 
 
 
   ComponentIDint  Production.Product.ProductID
 
 
 
   StartDatedatetime   
(getdate())
 
 
   EndDatedatetime   
 
 
 
   UnitMeasureCodenchar(6) SQL_Latin1_General_CP1_CI_ASProduction.UnitMeasure.UnitMeasureCode
 
 
 
   BOMLevelsmallint   
 
 
 
   PerAssemblyQtydecimal(5,2)   
((1.00))
 
 
   ModifiedDatedatetime   
(getdate())
 
 

Indexes

NameTypePrimaryUniqueColumns
AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDateClustered  ProductAssemblyID, ComponentID, StartDate
PK_BillOfMaterials_BillOfMaterialsIDNonClustered  BillOfMaterialsID
IX_BillOfMaterials_UnitMeasureCodeNonClustered  UnitMeasureCode

Check Constraints

NameColumnEnabledTrustedExpression
CK_BillOfMaterials_BOMLevel   ([ProductAssemblyID] IS NULL AND [BOMLevel]=(0) AND [PerAssemblyQty]=(1.00) OR [ProductAssemblyID] IS NOT NULL AND [BOMLevel]>=(1))
CK_BillOfMaterials_EndDate   ([EndDate]>[StartDate] OR [EndDate] IS NULL)
CK_BillOfMaterials_ProductAssemblyID   ([ProductAssemblyID]<>[ComponentID])
CK_BillOfMaterials_PerAssemblyQtyPerAssemblyQty  ([PerAssemblyQty]>=(1.00))

Foreign Key Constraints

NameTypeReferenced Table
FK_BillOfMaterials_Product_ComponentIDForeign keyProduction.Product
FK_BillOfMaterials_Product_ProductAssemblyIDForeign keyProduction.Product
FK_BillOfMaterials_UnitMeasure_UnitMeasureCodeForeign keyProduction.UnitMeasure

Triggers

NameActivates onInstead OfFor ReplicationEnabledCreatedModified
uBillOfMaterialsUPDATE   14.10.2005. 1:59:502.7.2009. 10:35:10