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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| ToolId | uuid | not null, references Tools.Id | |
| AuthorId | uuid | not null, references AspNetUsers.Id | |
| ListingId | uuid | references Listings.Id | |
| Rating | integer | not null | |
| Title | varchar(120) | ||
| Body | varchar(2000) | not null | |
| Status | varchar(50) | not null | |
| ModerationNote | varchar(300) | ||
| ReportedAt | timestamptz | ||
| RemovedByAuthor | boolean | not null | |
| EditedAt | timestamptz | ||
| CreatedAt | timestamptz | not null | |
| UpdatedAt | timestamptz | not 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
ToolReviews.ToolIdreferencesTools.IdToolReviews.AuthorIdreferencesAspNetUsers.IdToolReviews.ListingIdreferencesListings.IdToolReviewReports.ToolReviewIdreferencesToolReviewsToolReviewWrites.ToolReviewIdreferencesToolReviews