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

From dbscript Online Help
Jump to: navigation, search
Line 65: Line 65:
 
| ProductPhotoID
 
| ProductPhotoID
 
|}
 
|}
 
 
== automatically generated ==
 
== automatically generated ==
  
Line 87: Line 86:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''Description
+
| '''Description / PK / Index
| '''PK / Index
 
 
 
|-
+
|- valign="top"
 
| ProductID
 
| ProductID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| Product identification number. Foreign key to Product.ProductID.
+
| Product identification number. Foreign key to Product.ProductID.PK_ProductProductPhoto_ProductID_ProductPhotoID
| PK_ProductProductPhoto_ProductID_ProductPhotoID
+
|- valign="top"
|-
 
 
| ProductPhotoID
 
| ProductPhotoID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| Product photo identification number. Foreign key to ProductPhoto.ProductPhotoID.
+
| Product photo identification number. Foreign key to ProductPhoto.ProductPhotoID.PK_ProductProductPhoto_ProductID_ProductPhotoID
| PK_ProductProductPhoto_ProductID_ProductPhotoID
+
|- valign="top"
|-
 
 
| Primary
 
| Primary
 
| Flag
 
| Flag
Line 110: Line 106:
 
| (0)
 
| (0)
 
| 0 = Photo is not the principal image. 1 = Photo is the principal image.
 
| 0 = Photo is not the principal image. 1 = Photo is the principal image.
|
+
|- valign="top"
|-
 
 
| ModifiedDate
 
| ModifiedDate
 
| datetime
 
| datetime
Line 117: Line 112:
 
| (GETDATE())
 
| (GETDATE())
 
| Date and time the record was last updated.
 
| Date and time the record was last updated.
|
 
 
|}
 
|}
  
Line 136: Line 130:
 
| ProductPhotoID
 
| ProductPhotoID
 
| ProductPhotoID
 
| ProductPhotoID
 +
|}
 +
 +
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Referenced Object
 +
| '''Object Type
 +
| '''Dependency Type
 +
 +
|-
 +
| [[dbo.Flag_(type)|dbo.Flag]]
 +
| Type
 +
| Data Type
 
|}
 
|}

Revision as of 00:57, 27 November 2009

wikibot

Table Production.ProductProductPhoto


Column Data Type Nullable Default PK Index
ProductID int not null PK_ProductProductPhoto_ProductID_ProductPhotoID
ProductPhotoID int not null PK_ProductProductPhoto_ProductID_ProductPhotoID
Primary dbo.Flag not null ((0))
ModifiedDate datetime not null (getdate())


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

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


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