Production.ProductModel Table

Information

NameProductModel
SchemaProduction
Row Count0
Data Size 
Index Size 
Reserved Size 
Unused Size 
Created29.3.2010. 21:58:18
Modified29.3.2010. 21:58:56

Extended Properties

NameTypeProperty NameValue
ProductModelTABLEMS_DescriptionProduct model classification.

Columns

PKKeyIdentityNameData TypeAllow NullsCollationReferencesDefaultComputedCompute Expression
   ProductModelIDint   
 
 
 
   Namenvarchar(50) SQL_Latin1_General_CP1_CI_AS 
 
 
 
   CatalogDescriptionxml   
 
 
 
   Instructionsxml   
 
 
 
   rowguiduniqueidentifier   
(newid())
 
 
   ModifiedDatedatetime   
(getdate())
 
 

Indexes

NameTypePrimaryUniqueColumns
PK_ProductModel_ProductModelIDClustered  ProductModelID
AK_ProductModel_NameNonClustered  Name
AK_ProductModel_rowguidNonClustered  rowguid

SQL Script

CREATE TABLE [Production].[ProductModel] (
    [ProductModelID] int NOT NULL IDENTITY,
    [Name] nvarchar(50) NOT NULL,
    [CatalogDescription] xml NULL,
    [Instructions] xml NULL,
    [rowguid] uniqueidentifier NOT NULL DEFAULT (newid()),
    [ModifiedDate] datetime NOT NULL DEFAULT (getdate())
);
CREATE UNIQUE INDEX [AK_ProductModel_Name] on [Production].[ProductModel]([Name]);
CREATE UNIQUE INDEX [AK_ProductModel_rowguid] on [Production].[ProductModel]([rowguid]);