AdventureWorks2019
Production.ProductProductPhoto
//
Cross-reference table mapping products and product photos.
Created: Modified:
Columns
-
//${escapify(column.description)}[int] NOT NULL
-
//${escapify(column.description)}[int] NOT NULL
-
//${escapify(column.description)}[Flag] NOT NULL DEFAULT ((0))//USER-DEFINED DATA TYPE[bit] NOT NULL
-
//${escapify(column.description)}[datetime] NOT NULL DEFAULT (getdate())
Indexes
-
//Nonclustered index created by a primary key constraint.PK_ProductProductPhoto_ProductID_ProductPhotoIDUNIQUE NONCLUSTEREDProductID , ProductPhotoID
Foreign Keys
-
//Foreign key constraint referencing Product.ProductID.FK_ProductProductPhoto_Product_ProductIDProduction.ProductProductID ⥱ ProductID
-
//Foreign key constraint referencing ProductPhoto.ProductPhotoID.FK_ProductProductPhoto_ProductPhoto_ProductPhotoIDProduction.ProductPhotoProductPhotoID ⥱ ProductPhotoID
Sample Data
ProductID
ProductPhotoID
Primary
ModifiedDate
1
1
true
2
1
true
3
1
true
4
1
true
316
1
true
317
1
true
318
1
true
319
1
true
320
1
true
321
1
true
322
1
true
323
1
true
324
1
true
325
1
true
326
1
true
327
1
true
328
1
true
329
1
true
330
1
true
331
1
true
332
160
true
341
1
true
342
1
true
343
1
true
344
1
true