AdCharges table

The AdCharges table in the Shipfolio schema has 21 columns, keyed by Id, with 1 foreign key to Companies. 1 column in AdCredits references it.

Columns (21)

Columns of the AdCharges table
ColumnTypeConstraintsDescription
Iduuidprimary key
CompanyIduuidnot null, references Companies.Id
AmountCentsbigintnot null
Triggervarchar(50)not null
Statusvarchar(50)not null
PeriodStarttimestamptznot null
PeriodEndtimestamptznot null
LedgerFromSequencebigintnot null
LedgerToSequencebigintnot null
Attemptsintegernot null
LastAttemptAttimestamptz
NextRetryAttimestamptz
StripePaymentIntentIdvarchar(255)
StripeChargeIdvarchar(255)
ReceiptUrlvarchar(1000)
CardLabelvarchar(80)
FailureCodevarchar(100)
FailureReasonvarchar(500)
PaidAttimestamptz
CreatedAttimestamptznot null
UpdatedAttimestamptznot null

Indexes (3)

  • (CompanyId, CreatedAt) (IX_AdCharges_CompanyId_CreatedAt)
  • (Status, NextRetryAt) (IX_AdCharges_Status_NextRetryAt)
  • (StripePaymentIntentId) (IX_AdCharges_StripePaymentIntentId)

Relationships