Production.ProductProductPhoto

Table: 'Production.ProductProductPhoto'

4 fields. 25 bytes.

Cross-reference table mapping products and product photos.

Field NameData TypeSizeOriginal TypeDefaultNullableDescriptionCheck
ProductIDint   Not nullProduct identification number. Foreign key to Product.ProductID. 
ProductPhotoIDint   Not nullProduct photo identification number. Foreign key to ProductPhoto.ProductPhotoID. 
PrimaryFlag bit(0)Not null0 = Photo is not the principal image. 1 = Photo is the principal image. 
ModifiedDatedatetime  getdate()Not nullDate and time the record was last updated. 

Extended Properties

The object has no extended properties.

Primary key for table 'Production.ProductProductPhoto'

Primary Key NameField Names
PK_ProductProductPhoto_ProductID_ProductPhotoIDProductID, ProductPhotoID

Foreign keys for table 'Production.ProductProductPhoto', 2 items

ForeignPrimaryKey Name
ProductProductPhoto.ProductIDProduct.ProductIDFK_ProductProductPhoto_Product_ProductID
ProductProductPhoto.ProductPhotoIDProductPhoto.ProductPhotoIDFK_ProductProductPhoto_ProductPhoto_ProductPhotoID

Indexes for table 'Production.ProductProductPhoto', 1 item

Index NameDescriptionClusteredUniqueFields
PK_ProductProductPhoto_ProductID_ProductPhotoIDNonclustered index created by a primary key constraint.NoYesProductID, ProductPhotoID

Triggers for table 'Production.ProductProductPhoto', 1 item

NameDescriptionTypeEnabled
uProductProductPhotoAFTER UPDATE trigger setting the ModifiedDate column in the ProductProductPhoto table to the current date.after Update Yes

Dependencies for table 'Production.ProductProductPhoto', 1 item

Object NameTypeField Name
Production.uProductProductPhototriggerN/A