SocialConnections table
The SocialConnections table in the Shipfolio schema has 38 columns, keyed by Id, with 3 foreign keys to Listings and AspNetUsers. 6 columns in CampaignPosts, DiscordAnnouncements, DiscordServerSettings, DiscordSupporterGrants and 2 more reference it.
Columns (38)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| Platform | varchar(50) | not null | |
| ListingId | uuid | references Listings.Id | |
| UserId | uuid | references AspNetUsers.Id | |
| ConnectedById | uuid | references AspNetUsers.Id | |
| ExternalId | varchar(200) | not null | |
| Handle | varchar(200) | not null | |
| DisplayName | varchar(200) | ||
| ProfileUrl | varchar(500) | ||
| AvatarUrl | varchar(1000) | ||
| ProtectedAccessToken | varchar(8192) | ||
| ProtectedRefreshToken | varchar(8192) | ||
| AccessTokenExpiresAt | timestamptz | ||
| InviteCode | varchar(64) | ||
| ProtectedWebhookUrl | varchar(2048) | ||
| Followers | bigint | ||
| Posts | bigint | ||
| Views | bigint | ||
| Likes | bigint | ||
| Online | bigint | ||
| FollowersHidden | boolean | not null | |
| StatsReadAt | timestamptz | ||
| ReadAttemptedAt | timestamptz | ||
| IsPublic | boolean | not null | |
| Status | varchar(50) | not null | |
| FailingSince | timestamptz | ||
| LastError | varchar(300) | ||
| ConnectedAt | timestamptz | not null | |
| CreatedAt | timestamptz | not null | |
| UpdatedAt | timestamptz | not null | |
| Servers | jsonb | ||
| BotAddedAt | timestamptz | ||
| InviteByBot | boolean | not null | |
| InviteChannelId | varchar(32) | ||
| PostChannelId | varchar(32) | ||
| PostChannelName | varchar(100) | ||
| PostsNews | boolean | not null | |
| AccountUserId | varchar(32) |
Indexes (2)
(ConnectedById)(IX_SocialConnections_ConnectedById)(Status, StatsReadAt)(IX_SocialConnections_Status_StatsReadAt)
Relationships
SocialConnections.ListingIdreferencesListings.IdSocialConnections.UserIdreferencesAspNetUsers.IdSocialConnections.ConnectedByIdreferencesAspNetUsers.IdCampaignPosts.SocialConnectionIdreferencesSocialConnectionsDiscordAnnouncements.ConnectionIdreferencesSocialConnectionsDiscordServerSettings.ConnectionIdreferencesSocialConnectionsDiscordSupporterGrants.ConnectionIdreferencesSocialConnectionsSocialFollowerDays.SocialConnectionIdreferencesSocialConnectionsSocialMomentPosts.ConnectionIdreferencesSocialConnections