Properties

Owner: Production 
Creation Date: 04/26/2006 
Located On: PRIMARY 
Data Size KB: 144 
Index Size KB: 48 
Rows: 128 
Description: Product model classification. 

Columns

Name Data Type Length NULL Default IsIdentity IsGUID Description
    ProductModelID  int          Primary key for ProductModel records. 
    Name  Name  100          Product model description. 
    CatalogDescription  xml  -1          Detailed product catalog information in xml format. 
    Instructions  xml  -1          Manufacturing instructions in xml format. 
    rowguid  uniqueidentifier  16    (newid())      ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. 
    ModifiedDate  datetime    (getdate())      Date and time the record was last updated. 
Total: 6 column(s)

Identity column

Name Seed Increment Not for replication
  ProductModelID   

Indexes

Index Primary Unique Description
  PK_ProductModel_ProductModelID      Primary key (clustered) constraint 
  PXML_ProductModel_CatalogDescription      Primary XML index. 
  PXML_ProductModel_Instructions      Primary XML index. 
  AK_ProductModel_Name      Unique nonclustered index. 
  AK_ProductModel_rowguid      Unique nonclustered index. Used to support replication samples. 
Total: 5 index(es)

Referencing Tables

Table Foreign Key Primary Key or Unique Constraint
  Production.Product  FK_Product_ProductModel_ProductModelID  PK_ProductModel_ProductModelID 
  Production.ProductModelIllustration  FK_ProductModelIllustration_ProductModel_ProductModelID  PK_ProductModel_ProductModelID 
  Production.ProductModelProductDescriptionCulture  FK_ProductModelProductDescriptionCulture_ProductModel_ProductModelID  PK_ProductModel_ProductModelID 
Total: 3 table(s)

Objects that [Production].[ProductModel] depends on

Object Name Owner Object Type Dep Level
  Name  dbo  User Defined type 
Total: 1 object(s)

Objects that depend on [Production].[ProductModel]

Object Name Owner Object Type Dep Level
  vProductModelCatalogDescription  Production  View 
  vProductModelInstructions  Production  View 
  Product  Production  Table 
  ProductModelIllustration  Production  Table 
  ProductModelProductDescriptionCulture  Production  Table 
  vProductAndDescription  Production  View 
  BillOfMaterials  Production  Table 
  ProductCostHistory  Production  Table 
  ProductDocument  Production  Table 
  ProductInventory  Production  Table 
  ProductListPriceHistory  Production  Table 
  ProductProductPhoto  Production  Table 
  ProductReview  Production  Table 
  ProductVendor  Purchasing  Table 
  PurchaseOrderDetail  Purchasing  Table 
  ShoppingCartItem  Sales  Table 
  SpecialOfferProduct  Sales  Table 
  TransactionHistory  Production  Table 
  WorkOrder  Production  Table 
  ufnGetProductDealerPrice  dbo  Function 
  ufnGetProductListPrice  dbo  Function 
  ufnGetProductStandardCost  dbo  Function 
  ufnGetStock  dbo  Function 
  SalesOrderDetail  Sales  Table 
  WorkOrderRouting  Production  Table 
  uspGetBillOfMaterials  dbo  Procedure 
  uspGetWhereUsedProductID  dbo  Procedure 
  iPurchaseOrderDetail  Purchasing  Trigger 
  iWorkOrder  Production  Trigger 
  uPurchaseOrderDetail  Purchasing  Trigger 
  uWorkOrder  Production  Trigger 
  iduSalesOrderDetail  Sales  Trigger 
Total: 32 object(s)

SQL

CREATE TABLE [ProductModel] (
    [ProductModelID] [int] IDENTITY (1, 1) NOT NULL ,
    [Name] [Name] NOT NULL ,
    [CatalogDescription] [xml] NULL ,
    [Instructions] [xml] NULL ,
    [rowguid]  uniqueidentifier ROWGUIDCOL  NOT NULL CONSTRAINT [DF_ProductModel_rowguid] DEFAULT (newid()),
    [ModifiedDate] [datetime] NOT NULL CONSTRAINT [DF_ProductModel_ModifiedDate] DEFAULT (getdate()),
    CONSTRAINT [PK_ProductModel_ProductModelID] PRIMARY KEY  CLUSTERED
    (
        [ProductModelID]
    )  ON [PRIMARY]
) ON [PRIMARY]
GO


See Also

List of tables