EscrowTransactions table

The EscrowTransactions table in the Shipfolio schema has 24 columns, keyed by Id, with 1 foreign key to Deals.

Columns (24)

Columns of the EscrowTransactions table
ColumnTypeConstraintsDescription
Iduuidprimary key
DealIduuidnot null, references Deals.Id
EscrowIdbigint
Referencevarchar(24)not null
AmountCentsbigintnot null
Currencyvarchar(3)not null
BrokerFeeCentsbigintnot null
EscrowFeeSplitvarchar(50)not null
InspectionDaysintegernot null
BuyerEmailvarchar(256)not null
SellerEmailvarchar(256)not null
Statusvarchar(50)not null
InDisputebooleannot null
BuyerNextStepUrlvarchar(500)
SellerNextStepUrlvarchar(500)
BuyerEscrowFeeCentsbigint
SellerEscrowFeeCentsbigint
LastEventvarchar(60)
LastSyncedAttimestamptz
LastErrorvarchar(300)
Attemptsintegernot null
SnapshotJsonjsonb
CreatedAttimestamptznot null
UpdatedAttimestamptznot null

Indexes (4)

  • (DealId) unique (IX_EscrowTransactions_DealId)
  • (EscrowId) unique (IX_EscrowTransactions_EscrowId)
  • (Reference) unique (IX_EscrowTransactions_Reference)
  • (Status, LastSyncedAt) (IX_EscrowTransactions_Status_LastSyncedAt)

Relationships

  • EscrowTransactions.DealId references Deals.Id