Databases > AdventureWorks2019 > Tables > Production.ProductProductPhoto

AdventureWorks2019

Production.ProductProductPhoto

//
Cross-reference table mapping products and product photos.

Created: Modified:

Columns

  • //
    ${escapify(column.description)}
    ProductID
    [int] NOT NULL
  • //
    ${escapify(column.description)}
    ProductPhotoID
    [int] NOT NULL
  • //
    ${escapify(column.description)}
    Primary
    [Flag] NOT NULL DEFAULT ((0))
    //
    USER-DEFINED DATA TYPE
    [bit] NOT NULL
  • //
    ${escapify(column.description)}
    ModifiedDate
    [datetime] NOT NULL DEFAULT (getdate())

Indexes

  • //
    Nonclustered index created by a primary key constraint.
    PK_ProductProductPhoto_ProductID_ProductPhotoID
    UNIQUE NONCLUSTERED
    ProductID , ProductPhotoID

Foreign Keys

  • //
    Foreign key constraint referencing Product.ProductID.
    FK_ProductProductPhoto_Product_ProductID
    Production.Product
    ProductID ⥱ ProductID
  • //
    Foreign key constraint referencing ProductPhoto.ProductPhotoID.
    FK_ProductProductPhoto_ProductPhoto_ProductPhotoID
    Production.ProductPhoto
    ProductPhotoID ⥱ 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