Production.ProductProductPhoto Table

Information

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

Extended Properties

NameTypeProperty NameValue
ProductProductPhotoTABLEMS_DescriptionCross-reference table mapping products and product photos.

Columns

PKKeyIdentityNameData TypeAllow NullsCollationReferencesDefaultComputedCompute Expression
   ProductIDint  Production.Product.ProductID
 
 
 
   ProductPhotoIDint  Production.ProductPhoto.ProductPhotoID
 
 
 
   Primarybit   
((0))
 
 
   ModifiedDatedatetime   
(getdate())
 
 

Indexes

NameTypePrimaryUniqueColumns
PK_ProductProductPhoto_ProductID_ProductPhotoIDNonClustered  ProductID, ProductPhotoID

Foreign Key Constraints

NameTypeReferenced Table
FK_ProductProductPhoto_Product_ProductIDForeign keyProduction.Product
FK_ProductProductPhoto_ProductPhoto_ProductPhotoIDForeign keyProduction.ProductPhoto

SQL Script

CREATE TABLE [Production].[ProductProductPhoto] (
    [ProductID] int NOT NULL,
    [ProductPhotoID] int NOT NULL,
    [Primary] bit NOT NULL DEFAULT ((0)),
    [ModifiedDate] datetime NOT NULL DEFAULT (getdate())
);