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)

Columns of the Reviews table
ColumnTypeConstraintsDescription
Iduuidprimary key
ListingIduuidnot null, references Listings.Id
AuthorIduuidnot null, references AspNetUsers.Id
Ratingintegernot null
Titlevarchar(120)not null
Bodyvarchar(4000)not null
Relationshipvarchar(50)not null
Sourcevarchar(50)not null
Statusvarchar(50)not null
ModerationNotevarchar(300)
ReportedAttimestamptz
OwnerResponsevarchar(2000)
OwnerRespondedAttimestamptz
Featuredbooleannot null
EditedAttimestamptz
CreatedAttimestamptznot null
UpdatedAttimestamptznot null

Indexes (3)

  • (AuthorId) (IX_Reviews_AuthorId)
  • (ListingId, AuthorId) unique (IX_Reviews_ListingId_AuthorId)
  • (ListingId, Status, CreatedAt) (IX_Reviews_ListingId_Status_CreatedAt)

Relationships