From dbscript Online Help
wikibot[edit]
Table
|
Production.ProductProductPhoto
|
Description
|
Cross-reference table mapping products and product photos.
|
Columns[edit]
Column
|
Data Type
|
Nullable
|
Default
|
Description
|
ProductID
|
int
|
not null
|
|
Product identification number. Foreign key to Product.ProductID.
|
ProductPhotoID
|
int
|
not null
|
|
Product photo identification number. Foreign key to ProductPhoto.ProductPhotoID.
|
Primary
|
dbo.Flag
|
not null
|
((0))
|
0 = Photo is not the principal image. 1 = Photo is the principal image.
|
ModifiedDate
|
datetime
|
not null
|
(getdate())
|
Date and time the record was last updated.
|
Primary Key[edit]
Primary Key
|
Columns
|
PK_ProductProductPhoto_ProductID_ProductPhotoID
|
ProductID, ProductPhotoID
|
Foreign Keys[edit]
References[edit]
Dependency Type
|
Object Type
|
Referenced Object
|
Data Type
|
Type
|
dbo.Flag
|
Schema
|
Schema
|
Production
|
automatically generated[edit]
Table
|
Production.ProductProductPhoto
|
Description
|
Cross-reference table mapping products and product photos.
|
Column
|
Data Type
|
Nullable
|
Default
|
Description / PK / Index
|
ProductID
|
int
|
not null
|
|
Product identification number. Foreign key to Product.ProductID. PK_ProductProductPhoto_ProductID_ProductPhotoID
|
ProductPhotoID
|
int
|
not null
|
|
Product photo identification number. Foreign key to ProductPhoto.ProductPhotoID. PK_ProductProductPhoto_ProductID_ProductPhotoID
|
Primary
|
Flag
|
not null
|
(0)
|
0 = Photo is not the principal image. 1 = Photo is the principal image.
|
ModifiedDate
|
datetime
|
not null
|
(GETDATE())
|
Date and time the record was last updated.
|
Dependency Type
|
Object Type
|
Referenced Object
|
Data Type
|
Type
|
dbo.Flag
|
Schema
|
Schema
|
Production
|