AdAccounts table
The AdAccounts table in the Shipfolio schema has 23 columns, keyed by Id, with 1 foreign key to Companies.
Columns (23)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| CompanyId | uuid | not null, references Companies.Id | |
| BalanceCents | bigint | not null | |
| Entries | bigint | not null | |
| LowCreditAtCents | bigint | not null | |
| LowCreditNotified | boolean | not null | |
| Flagged | boolean | not null | |
| FlagNote | varchar(500) | ||
| FlaggedAt | timestamptz | ||
| CreatedAt | timestamptz | not null | |
| UpdatedAt | timestamptz | not null | |
| BillingThresholdCents | bigint | not null | |
| CardAddedAt | timestamptz | ||
| CardAddedBy | uuid | ||
| CardAllowanceCents | bigint | not null | |
| CardBrand | varchar(30) | ||
| CardExpMonth | integer | ||
| CardExpYear | integer | ||
| CardLast4 | varchar(4) | ||
| CardPaymentMethodId | varchar(255) | ||
| ChargedThroughSequence | bigint | not null | |
| PaymentFailedAt | timestamptz | ||
| UnbilledSince | timestamptz |
Indexes (2)
(CardPaymentMethodId)(IX_AdAccounts_CardPaymentMethodId)(CompanyId)unique (IX_AdAccounts_CompanyId)
Relationships
AdAccounts.CompanyIdreferencesCompanies.Id