Difference between revisions of "Production.ProductProductPhoto (table)"

From dbscript Online Help
Jump to: navigation, search
Line 12: Line 12:
  
  
 +
=== Columns ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
Line 18: Line 19:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''Description / PK / Index
+
| '''Description
 
 
 
|- valign="top"
 
|- valign="top"
Line 25: Line 26:
 
| not null
 
| not null
 
|  
 
|  
| Product identification number. Foreign key to Product.ProductID.<br />PK_ProductProductPhoto_ProductID_ProductPhotoID
+
| Product identification number. Foreign key to Product.ProductID.
 
|- valign="top"
 
|- valign="top"
 
| ProductPhotoID
 
| ProductPhotoID
Line 31: Line 32:
 
| not null
 
| not null
 
|  
 
|  
| Product photo identification number. Foreign key to ProductPhoto.ProductPhotoID.<br />PK_ProductProductPhoto_ProductID_ProductPhotoID
+
| Product photo identification number. Foreign key to ProductPhoto.ProductPhotoID.
 
|- valign="top"
 
|- valign="top"
 
| Primary
 
| Primary
Line 37: Line 38:
 
| not null
 
| not null
 
| ((0))
 
| ((0))
| 0 = Photo is not the principal image. 1 = Photo is the principal image.<br />
+
| 0 = Photo is not the principal image. 1 = Photo is the principal image.
 
|- valign="top"
 
|- valign="top"
 
| ModifiedDate
 
| ModifiedDate
Line 43: Line 44:
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
| Date and time the record was last updated.<br />
+
| Date and time the record was last updated.
 
|}
 
|}
  
 +
=== Primary Key ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Primary Key
 +
| '''Columns
 +
|-
 +
| PK_ProductProductPhoto_ProductID_ProductPhotoID
 +
| ProductID, ProductPhotoID
 +
|}
  
 
+
=== Foreign Keys ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
Line 64: Line 74:
 
|}
 
|}
  
 
+
=== References ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
Line 75: Line 85:
 
| Type
 
| Type
 
| [[dbo.Flag_(type)|dbo.Flag]]
 
| [[dbo.Flag_(type)|dbo.Flag]]
 +
 +
|-
 +
| Schema
 +
| Schema
 +
| [[Production_(schema)|Production]]
  
 
|}
 
|}
 
  
  

Revision as of 00:06, 3 February 2010

wikibot

Table Production.ProductProductPhoto
Description Cross-reference table mapping products and product photos.


Columns

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

Primary Key Columns
PK_ProductProductPhoto_ProductID_ProductPhotoID ProductID, ProductPhotoID

Foreign Keys

Relation Column Referenced Column
Production.Product ProductID ProductID
Production.ProductPhoto ProductPhotoID ProductPhotoID

References

Dependency Type Object Type Referenced Object
Data Type Type dbo.Flag
Schema Schema Production


automatically generated

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.


Relation Column Referenced Column
Production.Product ProductID ProductID
Production.ProductPhoto ProductPhotoID ProductPhotoID


Dependency Type Object Type Referenced Object
Data Type Type dbo.Flag
Schema Schema Production