Articles table
The Articles table in the Shipfolio schema has 23 columns, keyed by Id, with 3 foreign keys to AspNetUsers, Listings and Launches. 4 columns in ArticleEmbeds, ArticleLikes, ArticleReports and CrossPosts reference it.
Columns (23)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| AuthorId | uuid | not null, references AspNetUsers.Id | |
| ListingId | uuid | not null, references Listings.Id | |
| LaunchId | uuid | references Launches.Id | |
| Title | varchar(120) | not null | |
| Slug | varchar(100) | ||
| Subtitle | varchar(240) | ||
| Body | varchar(40000) | not null | |
| Excerpt | varchar(300) | not null | |
| CoverImageUrl | varchar(500) | ||
| NicheTags | text[] | not null | |
| Status | varchar(50) | not null | |
| PublishedAt | timestamptz | ||
| FirstPublishedAt | timestamptz | ||
| WordCount | integer | not null | |
| ReadingMinutes | integer | not null | |
| ViewCount | integer | not null | |
| RemovedAt | timestamptz | ||
| RemovedBy | uuid | ||
| CreatedAt | timestamptz | not null | |
| UpdatedAt | timestamptz | not null | |
| LikeCount | integer | not null | |
| ThreadId | uuid |
Indexes (4)
(AuthorId, UpdatedAt)(IX_Articles_AuthorId_UpdatedAt)(LaunchId)(IX_Articles_LaunchId)(ListingId, FirstPublishedAt)(IX_Articles_ListingId_FirstPublishedAt)(NicheTags)(IX_Articles_NicheTags)
Relationships
Articles.AuthorIdreferencesAspNetUsers.IdArticles.ListingIdreferencesListings.IdArticles.LaunchIdreferencesLaunches.IdArticleEmbeds.ArticleIdreferencesArticlesArticleLikes.ArticleIdreferencesArticlesArticleReports.ArticleIdreferencesArticlesCrossPosts.ArticleIdreferencesArticles