RevenueConnections table
The RevenueConnections table in the Shipfolio schema has 20 columns, keyed by Id, with 1 foreign key to Listings.
Columns (20)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| ListingId | uuid | not null, references Listings.Id | |
| StripeAccountId | varchar(255) | not null | |
| Status | varchar(50) | not null | |
| ConnectedAt | timestamptz | not null | |
| LastSyncedAt | timestamptz | ||
| LastError | varchar(500) | ||
| CreatedAt | timestamptz | not null | |
| UpdatedAt | timestamptz | not null | |
| LastCurrency | text | ||
| LastCustomerCount | integer | ||
| LastMixedCurrency | boolean | not null | |
| LastMrrCents | bigint | ||
| ProtectedKey | varchar(2048) | ||
| LastWebhookAt | timestamptz | ||
| ProtectedWebhookSecret | varchar(2048) | ||
| RefreshRequestedAt | timestamptz | ||
| Kind | varchar(50) | not null | |
| AlertSent | varchar(50) | not null | |
| FailingSince | timestamptz |
Indexes (2)
(ListingId)unique (IX_RevenueConnections_ListingId)(StripeAccountId)(IX_RevenueConnections_StripeAccountId)
Relationships
RevenueConnections.ListingIdreferencesListings.Id