Threads table

The Threads table in the Shipfolio schema has 20 columns, keyed by Id, with 3 foreign keys to AspNetUsers, Listings and JobPostings. 4 columns in ThreadEmbeddings, ThreadReplies, ThreadReports and ThreadVotes reference it.

Columns (20)

Columns of the Threads table
ColumnTypeConstraintsDescription
Iduuidprimary key
Slugvarchar(100)not null
Titlevarchar(120)not null
Bodyvarchar(10000)not null
Kindvarchar(50)not null
AuthorIduuidnot null, references AspNetUsers.Id
ListingIduuidreferences Listings.Id
ToolSlugvarchar(100)
Topicstext[]not null
Scoreintegernot null
HotScoredouble precisionnot null
ReplyCountintegernot null
LastActivityAttimestamptznot null
CreatedAttimestamptznot null
EditedAttimestamptz
DeletedAttimestamptz
DeletedByuuid
LockedAttimestamptz
JobPostingIduuidreferences JobPostings.Id
ArticleIduuid

Indexes (3)

  • (AuthorId, CreatedAt) (IX_Threads_AuthorId_CreatedAt)
  • (Slug) unique (IX_Threads_Slug)
  • (Topics) (IX_Threads_Topics)

Relationships