Cross-reference table mapping products and product photos.
Creation Date | 27/10/2017 14:33 |
File Group | PRIMARY |
Text File Group | |
System Object | |
Published for Replication | |
Rows | 504 |
Data Space Used | 16.00 KB |
Index Space Used | 40.00 KB |
Column Name | Description | Datatype | Length | Allow Nulls | Default | Formula | |
---|---|---|---|---|---|---|---|
ProductID | Product identification number. Foreign key to Product.ProductID. | Integer | 4 | ||||
ProductPhotoID | Product photo identification number. Foreign key to ProductPhoto.ProductPhotoID. | Integer | 4 | ||||
Primary | 0 = Photo is not the principal image. 1 = Photo is the principal image. | dbo.Flag | 1 | ((0)) | |||
ModifiedDate | Date and time the record was last updated. | DBTimeStamp | 4 | (getdate()) |
Index | Description | Primary | Unique |
---|---|---|---|
PK_ProductProductPhoto_ProductID_ProductPhotoID | Primary key (clustered) constraint |
Relationship | Description |
---|---|
FK_ProductProductPhoto_Product_ProductID | Foreign key constraint referencing Product.ProductID. |
FK_ProductProductPhoto_ProductPhoto_ProductPhotoID | Foreign key constraint referencing ProductPhoto.ProductPhotoID. |
Database Object | Object Type | Description | Dep Level | |
---|---|---|---|---|
dbo.Flag | User Defined Data Type | 1 | ||
dbo.Name | User Defined Data Type | 2 | ||
Production.Product | Table | Products sold or used in the manfacturing of sold products. | 1 | |
Production.ProductCategory | Table | High-level product categorization. | 3 | |
Production.ProductModel | Table | Product model classification. | 2 | |
Production.ProductPhoto | Table | Product images. | 1 | |
Production.ProductSubcategory | Table | Product subcategories. See ProductCategory table. | 2 | |
Production.UnitMeasure | Table | Unit of measure lookup table. | 2 |
|