| Field Name | Data Type | Size | Original Type | Default | Nullable | Description | Check |
|---|---|---|---|---|---|---|---|
| ProductSubcategoryID | int identity | int | Not null | Primary key for ProductSubcategory records. | |||
| ProductCategoryID | int | Not null | Product category identification number. Foreign key to ProductCategory.ProductCategoryID. | ||||
| Name | Name | nvarchar(50) | Not null | Subcategory description. | |||
| rowguid | uniqueidentifier | newid() | Not null | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. | |||
| ModifiedDate | datetime | getdate() | Not null | Date and time the record was last updated. |
The object has no extended properties.
| Primary Key Name | Field Name |
|---|---|
| PK_ProductSubcategory_ProductSubcategoryID | ProductSubcategoryID |
| Foreign | Primary | Key Name |
|---|---|---|
| ProductSubcategory.ProductCategoryID | ProductCategory.ProductCategoryID | FK_ProductSubcategory_ProductCategory_ProductCategoryID |
| Index Name | Description | Clustered | Unique | Fields |
|---|---|---|---|---|
| PK_ProductSubcategory_ProductSubcategoryID | Clustered index created by a primary key constraint. | Yes | Yes | ProductSubcategoryID |
| AK_ProductSubcategory_Name | Unique nonclustered index. | No | Yes | Name |
| AK_ProductSubcategory_rowguid | Unique nonclustered index. Used to support replication samples. | No | Yes | rowguid |
| Name | Description | Type | Enabled |
|---|---|---|---|
| uProductSubcategory | AFTER UPDATE trigger setting the ModifiedDate column in the ProductSubcategory table to the current date. | after Update | Yes |
| Object Name | Type | Field Name |
|---|---|---|
| Production.uProductSubcategory | trigger | N/A |