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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| ConversationId | uuid | not null, references Conversations.Id | |
| MessageId | uuid | references Messages.Id | |
| ReporterId | uuid | not null, references AspNetUsers.Id | |
| ReportedUserId | uuid | not null, references AspNetUsers.Id | |
| Reason | varchar(50) | not null | |
| Note | varchar(1000) | ||
| Status | varchar(50) | not null | |
| CreatedAt | timestamptz | not null | |
| ResolvedAt | timestamptz | ||
| ResolvedBy | uuid |
Indexes (3)
(MessageId)(IX_MessageReports_MessageId)(ReportedUserId)(IX_MessageReports_ReportedUserId)(ReporterId, CreatedAt)(IX_MessageReports_ReporterId_CreatedAt)
Relationships
MessageReports.ConversationIdreferencesConversations.IdMessageReports.MessageIdreferencesMessages.IdMessageReports.ReporterIdreferencesAspNetUsers.IdMessageReports.ReportedUserIdreferencesAspNetUsers.Id