Conversations table

The Conversations table in the Shipfolio schema has 14 columns, keyed by Id, with 3 foreign keys to AspNetUsers and Listings. 4 columns in Deals, MessageReports, Messages and WelcomeMessages reference it.

Columns (14)

Columns of the Conversations table
ColumnTypeConstraintsDescription
Iduuidprimary key
StarterIduuidnot null, references AspNetUsers.Id
RecipientIduuidnot null, references AspNetUsers.Id
ListingIduuidreferences Listings.Id
LastMessageAttimestamptznot null
StarterReadAttimestamptz
RecipientReadAttimestamptz
ClosedAttimestamptz
ClosedByuuid
CreatedAttimestamptznot null
UpdatedAttimestamptznot null
Kindvarchar(50)not null
RecipientFavoritedAttimestamptz
StarterFavoritedAttimestamptz

Indexes (4)

  • (ListingId) (IX_Conversations_ListingId)
  • (RecipientId, LastMessageAt) (IX_Conversations_RecipientId_LastMessageAt)
  • (StarterId, LastMessageAt) (IX_Conversations_StarterId_LastMessageAt)
  • (StarterId, RecipientId, ListingId) (IX_Conversations_StarterId_RecipientId_ListingId)

Relationships