Reviews table
The Reviews table in the Shipfolio schema has 17 columns, keyed by Id, with 2 foreign keys to Listings and AspNetUsers. 1 column in ReviewReports references it.
Columns (17)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| ListingId | uuid | not null, references Listings.Id | |
| AuthorId | uuid | not null, references AspNetUsers.Id | |
| Rating | integer | not null | |
| Title | varchar(120) | not null | |
| Body | varchar(4000) | not null | |
| Relationship | varchar(50) | not null | |
| Source | varchar(50) | not null | |
| Status | varchar(50) | not null | |
| ModerationNote | varchar(300) | ||
| ReportedAt | timestamptz | ||
| OwnerResponse | varchar(2000) | ||
| OwnerRespondedAt | timestamptz | ||
| Featured | boolean | not null | |
| EditedAt | timestamptz | ||
| CreatedAt | timestamptz | not null | |
| UpdatedAt | timestamptz | not null |
Indexes (3)
(AuthorId)(IX_Reviews_AuthorId)(ListingId, AuthorId)unique (IX_Reviews_ListingId_AuthorId)(ListingId, Status, CreatedAt)(IX_Reviews_ListingId_Status_CreatedAt)
Relationships
Reviews.ListingIdreferencesListings.IdReviews.AuthorIdreferencesAspNetUsers.IdReviewReports.ReviewIdreferencesReviews