Difference between revisions of "Production.BillOfMaterials (table)"

From dbscript Online Help
Jump to: navigation, search
Line 104: Line 104:
 
| UnitMeasureCode
 
| UnitMeasureCode
 
|}
 
|}
 
 
== automatically generated ==
 
== automatically generated ==
  
Line 126: Line 125:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''Description
+
| '''Description / PK / Index
| '''PK / Index
 
 
 
 
|-
 
|-
Line 134: Line 132:
 
| not null
 
| not null
 
|  
 
|  
| Primary key for BillOfMaterials records.
+
| Primary key for BillOfMaterials records.PK_BillOfMaterials_BillOfMaterialsID
| PK_BillOfMaterials_BillOfMaterialsID
 
 
|-
 
|-
 
| ProductAssemblyID
 
| ProductAssemblyID
Line 141: Line 138:
 
| null
 
| null
 
|  
 
|  
| Parent product identification number. Foreign key to Product.ProductID.
+
| Parent product identification number. Foreign key to Product.ProductID.AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate
| AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate
 
 
|-
 
|-
 
| ComponentID
 
| ComponentID
Line 148: Line 144:
 
| not null
 
| not null
 
|  
 
|  
| Component identification number. Foreign key to Product.ProductID.
+
| Component identification number. Foreign key to Product.ProductID.AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate
| AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate
 
 
|-
 
|-
 
| StartDate
 
| StartDate
Line 155: Line 150:
 
| not null
 
| not null
 
| (GETDATE())
 
| (GETDATE())
| Date the component started being used in the assembly item.
+
| Date the component started being used in the assembly item.AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate
| AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate
 
 
|-
 
|-
 
| EndDate
 
| EndDate
Line 163: Line 157:
 
|  
 
|  
 
| Date the component stopped being used in the assembly item.
 
| Date the component stopped being used in the assembly item.
|
 
 
|-
 
|-
 
| UnitMeasureCode
 
| UnitMeasureCode
Line 169: Line 162:
 
| not null
 
| not null
 
|  
 
|  
| Standard code identifying the unit of measure for the quantity.
+
| Standard code identifying the unit of measure for the quantity.IX_BillOfMaterials_UnitMeasureCode
| IX_BillOfMaterials_UnitMeasureCode
 
 
|-
 
|-
 
| BOMLevel
 
| BOMLevel
Line 177: Line 169:
 
|  
 
|  
 
| Indicates the depth the component is from its parent (AssemblyID).
 
| Indicates the depth the component is from its parent (AssemblyID).
|
 
 
|-
 
|-
 
| PerAssemblyQty
 
| PerAssemblyQty
Line 184: Line 175:
 
| (1.00)
 
| (1.00)
 
| Quantity of the component needed to create the assembly.
 
| Quantity of the component needed to create the assembly.
|
 
 
|-
 
|-
 
| ModifiedDate
 
| ModifiedDate
Line 191: Line 181:
 
| (GETDATE())
 
| (GETDATE())
 
| Date and time the record was last updated.
 
| Date and time the record was last updated.
|
 
 
|}
 
|}
  
Line 214: Line 203:
 
| UnitMeasureCode
 
| UnitMeasureCode
 
| UnitMeasureCode
 
| UnitMeasureCode
 +
|}
 +
 +
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Referencing Object
 +
| '''Object Type
 +
| '''Reference Type
 +
 +
|-
 +
| [[dbo.uspGetBillOfMaterials_(procedure)|dbo.uspGetBillOfMaterials]]
 +
| Procedure
 +
| Select
 +
|-
 +
| [[dbo.uspGetWhereUsedProductID_(procedure)|dbo.uspGetWhereUsedProductID]]
 +
| Procedure
 +
| Select
 
|}
 
|}

Revision as of 23:52, 26 November 2009

wikibot

Table Production.BillOfMaterials


Column Data Type Nullable Default PK Index
BillOfMaterialsID int not null PK_BillOfMaterials_BillOfMaterialsID
ProductAssemblyID int null AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate
ComponentID int not null AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate
StartDate datetime not null (getdate()) AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate
EndDate datetime null
UnitMeasureCode nchar(3) not null IX_BillOfMaterials_UnitMeasureCode
BOMLevel smallint not null
PerAssemblyQty decimal(8, 2) not null ((1.00))
ModifiedDate datetime not null (getdate())


Relation Column Referenced Column
Production.Product ComponentID ProductID
Production.Product ProductAssemblyID ProductID
Production.UnitMeasure UnitMeasureCode UnitMeasureCode

automatically generated

Table Production.BillOfMaterials
Description Items required to make bicycles and bicycle subassemblies. It identifies the heirarchical relationship between a parent product and its components.


Column Data Type Nullable Default Description / PK / Index
BillOfMaterialsID int not null Primary key for BillOfMaterials records.PK_BillOfMaterials_BillOfMaterialsID
ProductAssemblyID int null Parent product identification number. Foreign key to Product.ProductID.AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate
ComponentID int not null Component identification number. Foreign key to Product.ProductID.AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate
StartDate datetime not null (GETDATE()) Date the component started being used in the assembly item.AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate
EndDate datetime null Date the component stopped being used in the assembly item.
UnitMeasureCode nchar(3) not null Standard code identifying the unit of measure for the quantity.IX_BillOfMaterials_UnitMeasureCode
BOMLevel smallint not null Indicates the depth the component is from its parent (AssemblyID).
PerAssemblyQty decimal(8, 2) not null (1.00) Quantity of the component needed to create the assembly.
ModifiedDate datetime not null (GETDATE()) Date and time the record was last updated.


Relation Column Referenced Column
Production.Product ComponentID ProductID
Production.Product ProductAssemblyID ProductID
Production.UnitMeasure UnitMeasureCode UnitMeasureCode


Referencing Object Object Type Reference Type
dbo.uspGetBillOfMaterials Procedure Select
dbo.uspGetWhereUsedProductID Procedure Select