ToolReviews table

The ToolReviews table in the Shipfolio schema has 14 columns, keyed by Id, with 3 foreign keys to Tools, AspNetUsers and Listings. 2 columns in ToolReviewReports and ToolReviewWrites reference it.

Columns (14)

Columns of the ToolReviews table
ColumnTypeConstraintsDescription
Iduuidprimary key
ToolIduuidnot null, references Tools.Id
AuthorIduuidnot null, references AspNetUsers.Id
ListingIduuidreferences Listings.Id
Ratingintegernot null
Titlevarchar(120)
Bodyvarchar(2000)not null
Statusvarchar(50)not null
ModerationNotevarchar(300)
ReportedAttimestamptz
RemovedByAuthorbooleannot null
EditedAttimestamptz
CreatedAttimestamptznot null
UpdatedAttimestamptznot null

Indexes (4)

  • (AuthorId) (IX_ToolReviews_AuthorId)
  • (ListingId) (IX_ToolReviews_ListingId)
  • (ToolId, AuthorId) unique (IX_ToolReviews_ToolId_AuthorId)
  • (ToolId, Status, CreatedAt) (IX_ToolReviews_ToolId_Status_CreatedAt)

Relationships