| Owner: | Production |
| Creation Date: | 04/26/2006 |
| Located On: | PRIMARY |
| Data Size KB: | 8 |
| Index Size KB: | 40 |
| Rows: | 37 |
| Description: | Product subcategories. See ProductCategory table. |
| Name | Data Type | Length | NULL | Default | IsIdentity | IsGUID | Description | ||
| ProductSubcategoryID | int | 4 | Primary key for ProductSubcategory records. | ||||||
| ProductCategoryID | int | 4 | Product category identification number. Foreign key to ProductCategory.ProductCategoryID. | ||||||
| Name | Name | 100 | Subcategory description. | ||||||
| rowguid | uniqueidentifier | 16 | (newid()) | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. | |||||
| ModifiedDate | datetime | 8 | (getdate()) | Date and time the record was last updated. |
| Name | Seed | Increment | Not for replication | |
| ProductSubcategoryID | 1 | 1 |
| Index | Primary | Unique | Description | |
| PK_ProductSubcategory_ProductSubcategoryID | Primary key (clustered) constraint | |||
| AK_ProductSubcategory_Name | Unique nonclustered index. | |||
| AK_ProductSubcategory_rowguid | Unique nonclustered index. Used to support replication samples. |
| Table | Foreign Key | Primary Key or Unique Constraint | |
| Production.Product | FK_Product_ProductSubcategory_ProductSubcategoryID | PK_ProductSubcategory_ProductSubcategoryID |
| Table | Foreign Key | Primary Key or Unique Constraint | |
| Production.ProductCategory | FK_ProductSubcategory_ProductCategory_ProductCategoryID | PK_ProductCategory_ProductCategoryID |
Objects that [Production].[ProductSubcategory] depends on
| Object Name | Owner | Object Type | Dep Level | |
| Name | dbo | User Defined type | 1 | |
| ProductCategory | Production | Table | 2 |
Objects that depend on [Production].[ProductSubcategory]
| Object Name | Owner | Object Type | Dep Level | |
| Product | Production | Table | 1 | |
| vProductAndDescription | Production | View | 2 | |
| BillOfMaterials | Production | Table | 2 | |
| ProductCostHistory | Production | Table | 2 | |
| ProductDocument | Production | Table | 2 | |
| ProductInventory | Production | Table | 2 | |
| ProductListPriceHistory | Production | Table | 2 | |
| ProductProductPhoto | Production | Table | 2 | |
| ProductReview | Production | Table | 2 | |
| ProductVendor | Purchasing | Table | 2 | |
| PurchaseOrderDetail | Purchasing | Table | 2 | |
| ShoppingCartItem | Sales | Table | 2 | |
| SpecialOfferProduct | Sales | Table | 2 | |
| TransactionHistory | Production | Table | 2 | |
| WorkOrder | Production | Table | 2 | |
| ufnGetProductDealerPrice | dbo | Function | 3 | |
| ufnGetProductListPrice | dbo | Function | 3 | |
| ufnGetProductStandardCost | dbo | Function | 3 | |
| ufnGetStock | dbo | Function | 3 | |
| SalesOrderDetail | Sales | Table | 3 | |
| WorkOrderRouting | Production | Table | 3 | |
| uspGetBillOfMaterials | dbo | Procedure | 3 | |
| uspGetWhereUsedProductID | dbo | Procedure | 3 | |
| iPurchaseOrderDetail | Purchasing | Trigger | 3 | |
| iWorkOrder | Production | Trigger | 3 | |
| uPurchaseOrderDetail | Purchasing | Trigger | 3 | |
| uWorkOrder | Production | Trigger | 3 | |
| iduSalesOrderDetail | Sales | Trigger | 4 |
CREATE TABLE [ProductSubcategory] (
[ProductSubcategoryID] [int] IDENTITY (1, 1) NOT NULL ,
[ProductCategoryID] [int] NOT NULL ,
[Name] [Name] NOT NULL ,
[rowguid] uniqueidentifier ROWGUIDCOL NOT NULL CONSTRAINT [DF_ProductSubcategory_rowguid] DEFAULT (newid()),
[ModifiedDate] [datetime] NOT NULL CONSTRAINT [DF_ProductSubcategory_ModifiedDate] DEFAULT (getdate()),
CONSTRAINT [PK_ProductSubcategory_ProductSubcategoryID] PRIMARY KEY CLUSTERED
(
[ProductSubcategoryID]
) ON [PRIMARY] ,
CONSTRAINT [FK_ProductSubcategory_ProductCategory_ProductCategoryID] FOREIGN KEY
(
[ProductCategoryID]
) REFERENCES [ProductCategory] (
[ProductCategoryID]
)
) ON [PRIMARY]
GO
See Also
List of tables