Field Name | Data Type | Size | Original Type | Default | Nullable | Description | Check |
---|---|---|---|---|---|---|---|
ProductID | int | Not null | Product identification number. Foreign key to Product.ProductID | ||||
StartDate | datetime | Not null | Product cost start date. | ||||
EndDate | datetime | Null | Product cost end date. | ||||
StandardCost | money | 19,4 | decimal(19,4) | Not null | Standard cost of the product. | ([StandardCost]>=(0.00)) | |
ModifiedDate | datetime | getdate() | Not null | Date and time the record was last updated. |
The object has no extended properties.
Primary Key Name | Field Names |
---|---|
PK_ProductCostHistory_ProductID_StartDate | ProductID, StartDate |
Foreign | Primary | Key Name |
---|---|---|
ProductCostHistory.ProductID | Product.ProductID | FK_ProductCostHistory_Product_ProductID |
Index Name | Description | Clustered | Unique | Fields |
---|---|---|---|---|
PK_ProductCostHistory_ProductID_StartDate | Clustered index created by a primary key constraint. | Yes | Yes | ProductID, StartDate |
Name | Description | Type | Enabled |
---|---|---|---|
uProductCostHistory | AFTER UPDATE trigger setting the ModifiedDate column in the ProductCostHistory table to the current date. | after Update | Yes |
Object Name | Type | Field Name |
---|---|---|
dbo.ufnGetProductStandardCost | scalar function | N/A |
Production.CK_ProductCostHistory_EndDate | check cns | N/A |
Production.CK_ProductCostHistory_StandardCost | check cns | N/A |
Production.uProductCostHistory | trigger | N/A |