Production |
04/26/2006 |
PRIMARY |
16 |
56 |
4 |
Customer reviews of products they have purchased. |
|
|
ProductReviewID |
int |
4 |
|
|
|
|
Primary key for ProductReview records. |
|
|
ProductID |
int |
4 |
|
|
|
|
Product identification number. Foreign key to Product.ProductID. |
|
|
ReviewerName |
Name |
100 |
|
|
|
|
Name of the reviewer. |
|
|
ReviewDate |
datetime |
8 |
|
(getdate()) |
|
|
Date review was submitted. |
|
|
EmailAddress |
nvarchar |
50 |
|
|
|
|
Reviewer's e-mail address. |
|
|
Rating |
int |
4 |
|
|
|
|
Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating. |
|
|
Comments |
nvarchar |
3850 |
|
|
|
|
Reviewer's comments |
|
|
ModifiedDate |
datetime |
8 |
|
(getdate()) |
|
|
Date and time the record was last updated. |
Total: 8 column(s)
|
ProductReviewID |
1 |
1 |
|
Total: 2 index(es)
|
CK_ProductReview_Rating |
([Rating]>=(1) AND [Rating]<=(5)) |
Total: 1 constraint(s)
Total: 1 table(s)
Total: 7 object(s)
CREATE TABLE [ProductReview] (
[ProductReviewID] [int] IDENTITY (1, 1) NOT NULL ,
[ProductID] [int] NOT NULL ,
[ReviewerName] [Name] NOT NULL ,
[ReviewDate] [datetime] NOT NULL CONSTRAINT [DF_ProductReview_ReviewDate] DEFAULT (getdate()),
[EmailAddress] [nvarchar] (50) COLLATE Latin1_General_CS_AS NOT NULL ,
[Rating] [int] NOT NULL ,
[Comments] [nvarchar] (3850) COLLATE Latin1_General_CS_AS NULL ,
[ModifiedDate] [datetime] NOT NULL CONSTRAINT [DF_ProductReview_ModifiedDate] DEFAULT (getdate()),
CONSTRAINT [PK_ProductReview_ProductReviewID] PRIMARY KEY CLUSTERED
(
[ProductReviewID]
) ON [PRIMARY] ,
CONSTRAINT [FK_ProductReview_Product_ProductID] FOREIGN KEY
(
[ProductID]
) REFERENCES [Product] (
[ProductID]
),
CONSTRAINT [CK_ProductReview_Rating] CHECK ([Rating]>=(1) AND [Rating]<=(5))
) ON [PRIMARY]
GO
List of tables