ProductReviews table

The ProductReviews table in the FitStack - V2 schema has 10 columns, keyed by Id, with 2 foreign keys to Products and Users.

Columns (10)

Columns of the ProductReviews table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
ProductIduuidnot null, references Products.Id
UserIdtextnot null, references Users.Id
Ratingintegernot null
Titlecharacter varying(120)
Bodycharacter varying(2000)
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Indexes (3)

  • (ProductId, UserId) unique (IX_ProductReviews_ProductId_UserId_Unique)
  • (ProductId) (IX_ProductReviews_ProductId)
  • (UserId) (IX_ProductReviews_UserId)

Relationships