Production.ProductSubcategory

Table: 'Production.ProductSubcategory'

5 fields. 140 bytes.

Product subcategories. See ProductCategory table.

Field NameData TypeSizeOriginal TypeDefaultNullableDescriptionCheck
ProductSubcategoryIDint identity int Not nullPrimary key for ProductSubcategory records. 
ProductCategoryIDint   Not nullProduct category identification number. Foreign key to ProductCategory.ProductCategoryID. 
NameName nvarchar(50) Not nullSubcategory description. 
rowguiduniqueidentifier  newid()Not nullROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. 
ModifiedDatedatetime  getdate()Not nullDate and time the record was last updated. 

Extended Properties

The object has no extended properties.

Primary key for table 'Production.ProductSubcategory'

Primary Key NameField Name
PK_ProductSubcategory_ProductSubcategoryIDProductSubcategoryID

Foreign keys for table 'Production.ProductSubcategory', 1 item

ForeignPrimaryKey Name
ProductSubcategory.ProductCategoryIDProductCategory.ProductCategoryIDFK_ProductSubcategory_ProductCategory_ProductCategoryID

Indexes for table 'Production.ProductSubcategory', 3 items

Index NameDescriptionClusteredUniqueFields
PK_ProductSubcategory_ProductSubcategoryIDClustered index created by a primary key constraint.YesYesProductSubcategoryID
AK_ProductSubcategory_NameUnique nonclustered index.NoYesName
AK_ProductSubcategory_rowguidUnique nonclustered index. Used to support replication samples.NoYesrowguid

Triggers for table 'Production.ProductSubcategory', 1 item

NameDescriptionTypeEnabled
uProductSubcategoryAFTER UPDATE trigger setting the ModifiedDate column in the ProductSubcategory table to the current date.after Update Yes

Dependencies for table 'Production.ProductSubcategory', 1 item

Object NameTypeField Name
Production.uProductSubcategorytriggerN/A