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

From dbscript Online Help
Jump to: navigation, search
Line 5: Line 5:
 
| '''Table
 
| '''Table
 
| Production.ProductReview
 
| Production.ProductReview
 +
|- valign="top"
 +
| '''Description
 +
| Customer reviews of products they have purchased.
 
|-
 
|-
 
|}
 
|}
Line 15: Line 18:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''PK
+
| '''Description / PK / Index
| '''Index
 
 
 
|-
+
|- valign="top"
 
| ProductReviewID
 
| ProductReviewID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| PK_ProductReview_ProductReviewID
+
| Primary key for ProductReview records.<br />PK_ProductReview_ProductReviewID
|
+
|- valign="top"
|-
 
 
| ProductID
 
| ProductID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
|  
+
| Product identification number. Foreign key to Product.ProductID.<br />IX_ProductReview_ProductID_Name
| IX_ProductReview_ProductID_Name
+
|- valign="top"
|-
 
 
| ReviewerName
 
| ReviewerName
 
| dbo.Name
 
| dbo.Name
 
| not null
 
| not null
 
|  
 
|  
|  
+
| Name of the reviewer.<br />IX_ProductReview_ProductID_Name
| IX_ProductReview_ProductID_Name
+
|- valign="top"
|-
 
 
| ReviewDate
 
| ReviewDate
 
| datetime
 
| datetime
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
|  
+
| Date review was submitted.<br />
|
+
|- valign="top"
|-
 
 
| EmailAddress
 
| EmailAddress
 
| nvarchar(50)
 
| nvarchar(50)
 
| not null
 
| not null
 
|  
 
|  
|  
+
| Reviewer's e-mail address.<br />
|
+
|- valign="top"
|-
 
 
| Rating
 
| Rating
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
|  
+
| Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.<br />
|
+
|- valign="top"
|-
 
 
| Comments
 
| Comments
 
| nvarchar(3850)
 
| nvarchar(3850)
 
| null
 
| null
 
|  
 
|  
|  
+
| Reviewer's comments<br />IX_ProductReview_ProductID_Name
| IX_ProductReview_ProductID_Name
+
|- valign="top"
|-
 
 
| ModifiedDate
 
| ModifiedDate
 
| datetime
 
| datetime
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
|  
+
| Date and time the record was last updated.<br />
|
 
 
|}
 
|}
  
Line 89: Line 83:
 
| ProductID
 
| ProductID
 
|}
 
|}
 +
 +
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Dependency Type
 +
| '''Object Type
 +
| '''Referenced Object
 +
 +
|-
 +
| Data Type
 +
| Type
 +
| [[dbo.Name_(type)|dbo.Name]]
 +
 +
|}
 +
 +
 +
 
== automatically generated ==
 
== automatically generated ==
  

Revision as of 22:55, 28 December 2009

wikibot

Table Production.ProductReview
Description Customer reviews of products they have purchased.


Column Data Type Nullable Default Description / PK / Index
ProductReviewID int not null Primary key for ProductReview records.
PK_ProductReview_ProductReviewID
ProductID int not null Product identification number. Foreign key to Product.ProductID.
IX_ProductReview_ProductID_Name
ReviewerName dbo.Name not null Name of the reviewer.
IX_ProductReview_ProductID_Name
ReviewDate datetime not null (getdate()) Date review was submitted.
EmailAddress nvarchar(50) not null Reviewer's e-mail address.
Rating int not null Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.
Comments nvarchar(3850) null Reviewer's comments
IX_ProductReview_ProductID_Name
ModifiedDate datetime not null (getdate()) Date and time the record was last updated.


Relation Column Referenced Column
Production.Product ProductID ProductID


Dependency Type Object Type Referenced Object
Data Type Type dbo.Name


automatically generated

Table Production.ProductReview
Description Customer reviews of products they have purchased.


Column Data Type Nullable Default Description / PK / Index
ProductReviewID int not null Primary key for ProductReview records.
PK_ProductReview_ProductReviewID
ProductID int not null Product identification number. Foreign key to Product.ProductID.
IX_ProductReview_ProductID_Name
ReviewerName Name not null Name of the reviewer.
IX_ProductReview_ProductID_Name
ReviewDate datetime not null (GETDATE()) Date review was submitted.
EmailAddress nvarchar(50) not null Reviewer's e-mail address.
Rating int not null Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.
Comments nvarchar(3850) not null Reviewer's comments
IX_ProductReview_ProductID_Name
ModifiedDate datetime not null (GETDATE()) Date and time the record was last updated.


Relation Column Referenced Column
Production.Product ProductID ProductID


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