Product inventory and manufacturing locations.
| Creation Date | 27/10/2017 14:33 |
| File Group | PRIMARY |
| Text File Group | |
| System Object | ![]() |
| Published for Replication | ![]() |
| Rows | 14 |
| Data Space Used | 8.00 KB |
| Index Space Used | 24.00 KB |
| Column Name | Description | Datatype | Length | Allow Nulls | Default | Formula | |
|---|---|---|---|---|---|---|---|
| LocationID | Primary key for Location records. | SmallInt | 2 | |||
| Name | Location description. | dbo.Name | 50 | ||||
| CostRate | Standard hourly cost of the manufacturing location. | Currency | 8 | ((0.00)) | |||
| Availability | Work capacity (in hours) of the manufacturing location. | Numeric | 9 (8,2) | ((0.00)) | |||
| ModifiedDate | Date and time the record was last updated. | DBTimeStamp | 4 | (getdate()) |
| Index | Description | Primary | Unique |
|---|---|---|---|
| AK_Location_Name | Unique nonclustered index. | ![]() | |
| PK_Location_LocationID | Primary key (clustered) constraint | ![]() | ![]() |
| Name | Description | Expression |
|---|---|---|
| CK_Location_Availability | Check constraint [Availability] >= (0.00) | ([Availability]>=(0.00)) |
| CK_Location_CostRate | Check constraint [CostRate] >= (0.00) | ([CostRate]>=(0.00)) |
| Relationship | Description |
|---|---|
| FK_ProductInventory_Location_LocationID | Foreign key constraint referencing Location.LocationID. |
| FK_WorkOrderRouting_Location_LocationID | Foreign key constraint referencing Location.LocationID. |
| Database Object | Object Type | Description | Dep Level | |
|---|---|---|---|---|
![]() | Production.ProductInventory | Table | Product inventory information. | 1 |
![]() | dbo.ufnGetStock | User Defined Function | Scalar function returning the quantity of inventory in LocationID 6 (Miscellaneous Storage)for a specified ProductID. | 2 |
![]() | Production.WorkOrderRouting | Table | Work order details. | 1 |
| Database Object | Object Type | Description | Dep Level | |
|---|---|---|---|---|
![]() | dbo.Name | User Defined Data Type | 1 |
|