Production.Product Table

Information

NameProduct
SchemaProduction
Row Count504
Data Size104 KB
Index Size120 KB
Reserved Size240 KB
Unused Size16 KB
Created14.10.2005 1:58:33
Modified14.10.2005 1:59:59

Extended Properties

NameTypeProperty NameValue
ProductTABLEMS_DescriptionProducts sold or used in the manfacturing of sold products.

Columns

PKKeyIdentityNameData TypeAllow NullsCollationReferencesDefaultComputedCompute Expression
   ProductIDint   
 
 
 
   Namenvarchar(100) SQL_Latin1_General_CP1_CI_AS 
 
 
 
   ProductNumbernvarchar(50) SQL_Latin1_General_CP1_CI_AS 
 
 
 
   MakeFlagbit(1)   
((1))
 
 
   FinishedGoodsFlagbit(1)   
((1))
 
 
   Colornvarchar(30) SQL_Latin1_General_CP1_CI_AS 
 
 
 
   SafetyStockLevelsmallint   
 
 
 
   ReorderPointsmallint   
 
 
 
   StandardCostmoney   
 
 
 
   ListPricemoney   
 
 
 
   Sizenvarchar(10) SQL_Latin1_General_CP1_CI_AS 
 
 
 
   SizeUnitMeasureCodenchar(6) SQL_Latin1_General_CP1_CI_ASProduction.UnitMeasure.UnitMeasureCode
 
 
 
   WeightUnitMeasureCodenchar(6) SQL_Latin1_General_CP1_CI_ASProduction.UnitMeasure.UnitMeasureCode
 
 
 
   Weightdecimal(5,2)   
 
 
 
   DaysToManufactureint   
 
 
 
   ProductLinenchar(4) SQL_Latin1_General_CP1_CI_AS 
 
 
 
   Classnchar(4) SQL_Latin1_General_CP1_CI_AS 
 
 
 
   Stylenchar(4) SQL_Latin1_General_CP1_CI_AS 
 
 
 
   ProductSubcategoryIDint  Production.ProductSubcategory.ProductSubcategoryID
 
 
 
   ProductModelIDint  Production.ProductModel.ProductModelID
 
 
 
   SellStartDatedatetime   
 
 
 
   SellEndDatedatetime   
 
 
 
   DiscontinuedDatedatetime   
 
 
 
   rowguiduniqueidentifier   
(newid())
 
 
   ModifiedDatedatetime   
(getdate())
 
 

Indexes

NameTypePrimaryUniqueColumns
PK_Product_ProductIDClustered  ProductID
AK_Product_ProductNumberNonClustered  ProductNumber
AK_Product_NameNonClustered  Name
AK_Product_rowguidNonClustered  rowguid

Check Constraints

NameColumnEnabledTrustedExpression
CK_Product_SellEndDate   ([SellEndDate]>=[SellStartDate] OR [SellEndDate] IS NULL)
CK_Product_SafetyStockLevelSafetyStockLevel  ([SafetyStockLevel]>(0))
CK_Product_ReorderPointReorderPoint  ([ReorderPoint]>(0))
CK_Product_StandardCostStandardCost  ([StandardCost]>=(0.00))
CK_Product_ListPriceListPrice  ([ListPrice]>=(0.00))
CK_Product_WeightWeight  ([Weight]>(0.00))
CK_Product_DaysToManufactureDaysToManufacture  ([DaysToManufacture]>=(0))
CK_Product_ProductLineProductLine  (upper([ProductLine])='R' OR upper([ProductLine])='M' OR upper([ProductLine])='T' OR upper([ProductLine])='S' OR [ProductLine] IS NULL)
CK_Product_ClassClass  (upper([Class])='H' OR upper([Class])='M' OR upper([Class])='L' OR [Class] IS NULL)
CK_Product_StyleStyle  (upper([Style])='U' OR upper([Style])='M' OR upper([Style])='W' OR [Style] IS NULL)

Foreign Key Constraints

NameTypeReferenced Table
FK_Product_ProductModel_ProductModelIDForeign keyProduction.ProductModel
FK_Product_ProductSubcategory_ProductSubcategoryIDForeign keyProduction.ProductSubcategory
FK_Product_UnitMeasure_SizeUnitMeasureCodeForeign keyProduction.UnitMeasure
FK_Product_UnitMeasure_WeightUnitMeasureCodeForeign keyProduction.UnitMeasure

Triggers

NameActivates onInstead OfFor ReplicationEnabledCreatedModified
Production.uProductUPDATE   14.10.2005 1:59:5314.10.2005 1:59:53