CrossPosts table
The CrossPosts table in the Shipfolio schema has 22 columns, keyed by Id, with 2 foreign keys to Articles and Listings.
Columns (22)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| ArticleId | uuid | not null, references Articles.Id | |
| ListingId | uuid | not null, references Listings.Id | |
| Site | varchar(20) | not null | |
| Status | varchar(20) | not null | |
| DueAt | timestamptz | not null | |
| Attempts | integer | not null | |
| ExternalId | varchar(100) | ||
| Url | varchar(500) | ||
| ContentHash | varchar(64) | ||
| PostedAt | timestamptz | ||
| LastError | varchar(500) | ||
| CreatedAt | timestamptz | not null | |
| UpdatedAt | timestamptz | not null | |
| Adapted | boolean | not null | |
| AdaptedAt | timestamptz | ||
| AdaptedBody | varchar(40000) | ||
| AdaptedByAi | boolean | not null | |
| AdaptedQuery | varchar(120) | ||
| AdaptedTitle | varchar(120) | ||
| ApprovedAt | timestamptz | ||
| ApprovedById | uuid |
Indexes (4)
(ArticleId, Site)unique (IX_CrossPosts_ArticleId_Site)(ListingId)(IX_CrossPosts_ListingId)(ListingId, AdaptedAt)(IX_CrossPosts_ListingId_AdaptedAt)(Status, DueAt)(IX_CrossPosts_Status_DueAt)
Relationships
CrossPosts.ArticleIdreferencesArticles.IdCrossPosts.ListingIdreferencesListings.Id