Customer reviews of products they have purchased.
Creation Date | 27/10/2017 14:33 |
File Group | PRIMARY |
Text File Group | |
System Object | |
Published for Replication | |
Rows | 4 |
Data Space Used | 16.00 KB |
Index Space Used | 56.00 KB |
Column Name | Description | Datatype | Length | Allow Nulls | Default | Formula | |
---|---|---|---|---|---|---|---|
ProductReviewID | Primary key for ProductReview records. | Integer | 4 | ||||
ProductID | Product identification number. Foreign key to Product.ProductID. | Integer | 4 | ||||
ReviewerName | Name of the reviewer. | dbo.Name | 50 | ||||
ReviewDate | Date review was submitted. | DBTimeStamp | 4 | (getdate()) | |||
EmailAddress | Reviewer's e-mail address. | VarWChar | 50 | ||||
Rating | Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating. | Integer | 4 | ||||
Comments | Reviewer's comments | VarWChar | 3850 | ||||
ModifiedDate | Date and time the record was last updated. | DBTimeStamp | 4 | (getdate()) |
Index | Description | Primary | Unique |
---|---|---|---|
IX_ProductReview_ProductID_Name | Nonclustered index. | ||
PK_ProductReview_ProductReviewID | Primary key (clustered) constraint |
Name | Description | Expression |
---|---|---|
CK_ProductReview_Rating | Check constraint [Rating] BETWEEN (1) AND (5) | ([Rating]>=(1) AND [Rating]<=(5)) |
Relationship | Description |
---|---|
FK_ProductReview_Product_ProductID | Foreign key constraint referencing Product.ProductID. |
Database Object | Object Type | Description | Dep Level | |
---|---|---|---|---|
dbo.Flag | User Defined Data Type | 2 | ||
dbo.Name | User Defined Data Type | 1 | ||
Production.Product | Table | Products sold or used in the manfacturing of sold products. | 1 | |
Production.ProductCategory | Table | High-level product categorization. | 3 | |
Production.ProductModel | Table | Product model classification. | 2 | |
Production.ProductSubcategory | Table | Product subcategories. See ProductCategory table. | 2 | |
Production.UnitMeasure | Table | Unit of measure lookup table. | 2 |
|