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)

Columns of the SocialConnections table
ColumnTypeConstraintsDescription
Iduuidprimary key
Platformvarchar(50)not null
ListingIduuidreferences Listings.Id
UserIduuidreferences AspNetUsers.Id
ConnectedByIduuidreferences AspNetUsers.Id
ExternalIdvarchar(200)not null
Handlevarchar(200)not null
DisplayNamevarchar(200)
ProfileUrlvarchar(500)
AvatarUrlvarchar(1000)
ProtectedAccessTokenvarchar(8192)
ProtectedRefreshTokenvarchar(8192)
AccessTokenExpiresAttimestamptz
InviteCodevarchar(64)
ProtectedWebhookUrlvarchar(2048)
Followersbigint
Postsbigint
Viewsbigint
Likesbigint
Onlinebigint
FollowersHiddenbooleannot null
StatsReadAttimestamptz
ReadAttemptedAttimestamptz
IsPublicbooleannot null
Statusvarchar(50)not null
FailingSincetimestamptz
LastErrorvarchar(300)
ConnectedAttimestamptznot null
CreatedAttimestamptznot null
UpdatedAttimestamptznot null
Serversjsonb
BotAddedAttimestamptz
InviteByBotbooleannot null
InviteChannelIdvarchar(32)
PostChannelIdvarchar(32)
PostChannelNamevarchar(100)
PostsNewsbooleannot null
AccountUserIdvarchar(32)

Indexes (2)

  • (ConnectedById) (IX_SocialConnections_ConnectedById)
  • (Status, StatsReadAt) (IX_SocialConnections_Status_StatsReadAt)

Relationships