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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| Slug | varchar(100) | not null | |
| Title | varchar(120) | not null | |
| Body | varchar(10000) | not null | |
| Kind | varchar(50) | not null | |
| AuthorId | uuid | not null, references AspNetUsers.Id | |
| ListingId | uuid | references Listings.Id | |
| ToolSlug | varchar(100) | ||
| Topics | text[] | not null | |
| Score | integer | not null | |
| HotScore | double precision | not null | |
| ReplyCount | integer | not null | |
| LastActivityAt | timestamptz | not null | |
| CreatedAt | timestamptz | not null | |
| EditedAt | timestamptz | ||
| DeletedAt | timestamptz | ||
| DeletedBy | uuid | ||
| LockedAt | timestamptz | ||
| JobPostingId | uuid | references JobPostings.Id | |
| ArticleId | uuid |
Indexes (3)
(AuthorId, CreatedAt)(IX_Threads_AuthorId_CreatedAt)(Slug)unique (IX_Threads_Slug)(Topics)(IX_Threads_Topics)
Relationships
Threads.AuthorIdreferencesAspNetUsers.IdThreads.ListingIdreferencesListings.IdThreads.JobPostingIdreferencesJobPostings.IdThreadEmbeddings.ThreadIdreferencesThreadsThreadReplies.ThreadIdreferencesThreadsThreadReports.ThreadIdreferencesThreadsThreadVotes.ThreadIdreferencesThreads