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)

Columns of the Articles table
ColumnTypeConstraintsDescription
Iduuidprimary key
AuthorIduuidnot null, references AspNetUsers.Id
ListingIduuidnot null, references Listings.Id
LaunchIduuidreferences Launches.Id
Titlevarchar(120)not null
Slugvarchar(100)
Subtitlevarchar(240)
Bodyvarchar(40000)not null
Excerptvarchar(300)not null
CoverImageUrlvarchar(500)
NicheTagstext[]not null
Statusvarchar(50)not null
PublishedAttimestamptz
FirstPublishedAttimestamptz
WordCountintegernot null
ReadingMinutesintegernot null
ViewCountintegernot null
RemovedAttimestamptz
RemovedByuuid
CreatedAttimestamptznot null
UpdatedAttimestamptznot null
LikeCountintegernot null
ThreadIduuid

Indexes (4)

  • (AuthorId, UpdatedAt) (IX_Articles_AuthorId_UpdatedAt)
  • (LaunchId) (IX_Articles_LaunchId)
  • (ListingId, FirstPublishedAt) (IX_Articles_ListingId_FirstPublishedAt)
  • (NicheTags) (IX_Articles_NicheTags)

Relationships