| Field Name | Data Type | Size | Original Type | Default | Nullable | Description | Check | 
|---|---|---|---|---|---|---|---|
| ProductReviewID | int identity | int | Not null | Primary key for ProductReview records. | |||
| ProductID | int | Not null | Product identification number. Foreign key to Product.ProductID. | ||||
| ReviewerName | Name | nvarchar(50) | Not null | Name of the reviewer. | |||
| ReviewDate | datetime | getdate() | Not null | 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. | ([Rating]>=(1) AND [Rating]<=(5)) | |||
| Comments | nvarchar | 3850 | Null | Reviewer's comments | |||
| ModifiedDate | datetime | getdate() | Not null | Date and time the record was last updated. | 
The object has no extended properties.
| Primary Key Name | Field Name | 
|---|---|
| PK_ProductReview_ProductReviewID | ProductReviewID | 
| Foreign | Primary | Key Name | 
|---|---|---|
| ProductReview.ProductID | Product.ProductID | FK_ProductReview_Product_ProductID | 
| Index Name | Description | Clustered | Unique | Fields | 
|---|---|---|---|---|
| PK_ProductReview_ProductReviewID | Clustered index created by a primary key constraint. | Yes | Yes | ProductReviewID | 
| IX_ProductReview_ProductID_Name | Nonclustered index. | No | No | ProductID, ReviewerName | 
| Name | Description | Type | Enabled | 
|---|---|---|---|
| uProductReview | AFTER UPDATE trigger setting the ModifiedDate column in the ProductReview table to the current date. | after Update | Yes | 
| Object Name | Type | Field Name | 
|---|---|---|
| Production.CK_ProductReview_Rating | check cns | N/A | 
| Production.uProductReview | trigger | N/A |