SocialPosts table
The SocialPosts table in the Shipfolio schema has 28 columns, keyed by Id, with 1 foreign key to SocialVariants. 1 column in SocialPostListings references it.
Columns (28)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| Channel | varchar(50) | not null | |
| Kind | varchar(50) | not null | |
| Format | varchar(50) | not null | |
| Status | varchar(50) | not null | |
| VariantId | uuid | references SocialVariants.Id | |
| Theme | varchar(50) | not null | |
| SubjectKey | varchar(160) | not null | |
| ScheduledFor | timestamptz | not null | |
| Text | varchar(3000) | not null | |
| WrittenByAi | boolean | not null | |
| Link | varchar(500) | ||
| FactsJson | jsonb | not null | |
| SlidesJson | jsonb | not null | |
| BufferPostId | varchar(64) | ||
| ExternalUrl | varchar(500) | ||
| SentAt | timestamptz | ||
| Error | varchar(500) | ||
| Impressions | integer | ||
| Engagements | integer | ||
| Clicks | integer | ||
| MetricsReadAt | timestamptz | ||
| MetricsFinal | boolean | not null | |
| CreatedAt | timestamptz | not null | |
| UpdatedAt | timestamptz | not null | |
| ImageUrls | text[] | not null | |
| OptOutOverride | varchar(300) | ||
| VideoUrl | varchar(500) |
Indexes (4)
(BufferPostId)(IX_SocialPosts_BufferPostId)(Channel, ScheduledFor)(IX_SocialPosts_Channel_ScheduledFor)(Channel, SubjectKey)(IX_SocialPosts_Channel_SubjectKey)(VariantId)(IX_SocialPosts_VariantId)
Relationships
SocialPosts.VariantIdreferencesSocialVariants.IdSocialPostListings.PostIdreferencesSocialPosts