MessageReports table

The MessageReports table in the Shipfolio schema has 11 columns, keyed by Id, with 4 foreign keys to Conversations, Messages and AspNetUsers.

Columns (11)

Columns of the MessageReports table
ColumnTypeConstraintsDescription
Iduuidprimary key
ConversationIduuidnot null, references Conversations.Id
MessageIduuidreferences Messages.Id
ReporterIduuidnot null, references AspNetUsers.Id
ReportedUserIduuidnot null, references AspNetUsers.Id
Reasonvarchar(50)not null
Notevarchar(1000)
Statusvarchar(50)not null
CreatedAttimestamptznot null
ResolvedAttimestamptz
ResolvedByuuid

Indexes (3)

  • (MessageId) (IX_MessageReports_MessageId)
  • (ReportedUserId) (IX_MessageReports_ReportedUserId)
  • (ReporterId, CreatedAt) (IX_MessageReports_ReporterId_CreatedAt)

Relationships