Messages table
The Messages table in the Shipfolio schema has 6 columns, keyed by Id, with 1 foreign key to Conversations. 1 column in MessageReports references it.
Columns (6)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| ConversationId | uuid | not null, references Conversations.Id | |
| SenderId | uuid | not null | |
| Body | varchar(4000) | not null | |
| CreatedAt | timestamptz | not null | |
| UpdatedAt | timestamptz | not null |
Indexes (1)
(ConversationId, CreatedAt)(IX_Messages_ConversationId_CreatedAt)
Relationships
Messages.ConversationIdreferencesConversations.IdMessageReports.MessageIdreferencesMessages