Production.BillOfMaterials Table
Information
| Name | BillOfMaterials |
| Schema | Production |
| Row Count | 0 |
| Data Size | |
| Index Size | |
| Reserved Size | |
| Unused Size | |
| Created | 29.3.2010. 21:58:18 |
| Modified | 29.3.2010. 21:58:54 |
Extended Properties
| Name | Type | Property Name | Value |
| BillOfMaterials | TABLE | MS_Description | Items required to make bicycles and bicycle subassemblies. It identifies the heirarchical relationship between a parent product and its components. |
Columns
| PK | Key | Identity | Name | Data Type | Allow Nulls | Collation | References | Default | Computed | Compute Expression |
|   |   |   | BillOfMaterialsID | int |   | | | |   | |
| |   |   | ProductAssemblyID | int |   | | Production.Product.ProductID | |   | |
| |   |   | ComponentID | int |   | | Production.Product.ProductID | |   | |
| |   |   | StartDate | datetime |   | | | (getdate()) |   | |
| |   |   | EndDate | datetime |   | | | |   | |
| |   |   | UnitMeasureCode | nchar(3) |   | SQL_Latin1_General_CP1_CI_AS | Production.UnitMeasure.UnitMeasureCode | |   | |
| |   |   | BOMLevel | smallint |   | | | |   | |
| |   |   | PerAssemblyQty | decimal(8,2) |   | | | ((1.00)) |   | |
| |   |   | ModifiedDate | datetime |   | | | (getdate()) |   | |
Indexes
Check Constraints
Foreign Key Constraints
SQL Script
CREATE TABLE [Production].[BillOfMaterials] (
[BillOfMaterialsID] int NOT NULL IDENTITY,
[ProductAssemblyID] int NULL,
[ComponentID] int NOT NULL,
[StartDate] datetime NOT NULL DEFAULT (getdate()),
[EndDate] datetime NULL,
[UnitMeasureCode] nchar(3) NOT NULL,
[BOMLevel] smallint NOT NULL,
[PerAssemblyQty] decimal(8,2) NOT NULL DEFAULT ((1.00)),
[ModifiedDate] datetime NOT NULL DEFAULT (getdate())
);
CREATE UNIQUE INDEX [AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate] on [Production].[BillOfMaterials]([ProductAssemblyID], [ComponentID], [StartDate]);
CREATE INDEX [IX_BillOfMaterials_UnitMeasureCode] on [Production].[BillOfMaterials]([UnitMeasureCode]);