Difference between revisions of "Production.BillOfMaterials (table)"
Line 5: | Line 5: | ||
| '''Table | | '''Table | ||
| Production.BillOfMaterials | | Production.BillOfMaterials | ||
+ | |- valign="top" | ||
+ | | '''Description | ||
+ | | Items required to make bicycles and bicycle subassemblies. It identifies the heirarchical relationship between a parent product and its components. | ||
|- | |- | ||
|} | |} | ||
Line 15: | Line 18: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''PK | + | | '''Description / PK / Index |
− | |||
− | |- | + | |- valign="top" |
| BillOfMaterialsID | | BillOfMaterialsID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | PK_BillOfMaterials_BillOfMaterialsID | + | | Primary key for BillOfMaterials records.<br />PK_BillOfMaterials_BillOfMaterialsID |
− | + | |- valign="top" | |
− | |- | ||
| ProductAssemblyID | | ProductAssemblyID | ||
| int | | int | ||
| null | | null | ||
| | | | ||
− | | | + | | Parent product identification number. Foreign key to Product.ProductID.<br />AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate |
− | + | |- valign="top" | |
− | |- | ||
| ComponentID | | ComponentID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Component identification number. Foreign key to Product.ProductID.<br />AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate |
− | + | |- valign="top" | |
− | |- | ||
| StartDate | | StartDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | | | + | | Date the component started being used in the assembly item.<br />AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate |
− | + | |- valign="top" | |
− | |- | ||
| EndDate | | EndDate | ||
| datetime | | datetime | ||
| null | | null | ||
| | | | ||
− | | | + | | Date the component stopped being used in the assembly item.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| UnitMeasureCode | | UnitMeasureCode | ||
| nchar(3) | | nchar(3) | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Standard code identifying the unit of measure for the quantity.<br />IX_BillOfMaterials_UnitMeasureCode |
− | + | |- valign="top" | |
− | |- | ||
| BOMLevel | | BOMLevel | ||
| smallint | | smallint | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Indicates the depth the component is from its parent (AssemblyID).<br /> |
− | + | |- valign="top" | |
− | |- | ||
| PerAssemblyQty | | PerAssemblyQty | ||
| decimal(8, 2) | | decimal(8, 2) | ||
| not null | | not null | ||
| ((1.00)) | | ((1.00)) | ||
− | | | + | | Quantity of the component needed to create the assembly.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | | | + | | Date and time the record was last updated.<br /> |
− | |||
|} | |} | ||
Line 104: | Line 97: | ||
| UnitMeasureCode | | UnitMeasureCode | ||
|} | |} | ||
+ | |||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Reference Type | ||
+ | | '''Object Type | ||
+ | | '''Referencing Object | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | Procedure | ||
+ | | [[dbo.uspGetBillOfMaterials_(procedure)|dbo.uspGetBillOfMaterials]] | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | Procedure | ||
+ | | [[dbo.uspGetWhereUsedProductID_(procedure)|dbo.uspGetWhereUsedProductID]] | ||
+ | |||
+ | |} | ||
+ | |||
+ | |||
+ | |||
== automatically generated == | == automatically generated == | ||
Revision as of 22:54, 28 December 2009
wikibot
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 |
Reference Type | Object Type | Referencing Object |
Select | Procedure | dbo.uspGetBillOfMaterials |
Select | Procedure | dbo.uspGetWhereUsedProductID |
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 |
Dependency Type | Object Type | Referenced Object |
Schema | Schema | Production |
Reference Type | Object Type | Referencing Object |
Select | Procedure | dbo.uspGetBillOfMaterials |
Select | Procedure | dbo.uspGetWhereUsedProductID |