AdAccounts table

The AdAccounts table in the Shipfolio schema has 23 columns, keyed by Id, with 1 foreign key to Companies.

Columns (23)

Columns of the AdAccounts table
ColumnTypeConstraintsDescription
Iduuidprimary key
CompanyIduuidnot null, references Companies.Id
BalanceCentsbigintnot null
Entriesbigintnot null
LowCreditAtCentsbigintnot null
LowCreditNotifiedbooleannot null
Flaggedbooleannot null
FlagNotevarchar(500)
FlaggedAttimestamptz
CreatedAttimestamptznot null
UpdatedAttimestamptznot null
BillingThresholdCentsbigintnot null
CardAddedAttimestamptz
CardAddedByuuid
CardAllowanceCentsbigintnot null
CardBrandvarchar(30)
CardExpMonthinteger
CardExpYearinteger
CardLast4varchar(4)
CardPaymentMethodIdvarchar(255)
ChargedThroughSequencebigintnot null
PaymentFailedAttimestamptz
UnbilledSincetimestamptz

Indexes (2)

  • (CardPaymentMethodId) (IX_AdAccounts_CardPaymentMethodId)
  • (CompanyId) unique (IX_AdAccounts_CompanyId)

Relationships