EscrowTransactions table
The EscrowTransactions table in the Shipfolio schema has 24 columns, keyed by Id, with 1 foreign key to Deals.
Columns (24)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| DealId | uuid | not null, references Deals.Id | |
| EscrowId | bigint | ||
| Reference | varchar(24) | not null | |
| AmountCents | bigint | not null | |
| Currency | varchar(3) | not null | |
| BrokerFeeCents | bigint | not null | |
| EscrowFeeSplit | varchar(50) | not null | |
| InspectionDays | integer | not null | |
| BuyerEmail | varchar(256) | not null | |
| SellerEmail | varchar(256) | not null | |
| Status | varchar(50) | not null | |
| InDispute | boolean | not null | |
| BuyerNextStepUrl | varchar(500) | ||
| SellerNextStepUrl | varchar(500) | ||
| BuyerEscrowFeeCents | bigint | ||
| SellerEscrowFeeCents | bigint | ||
| LastEvent | varchar(60) | ||
| LastSyncedAt | timestamptz | ||
| LastError | varchar(300) | ||
| Attempts | integer | not null | |
| SnapshotJson | jsonb | ||
| CreatedAt | timestamptz | not null | |
| UpdatedAt | timestamptz | not 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.DealIdreferencesDeals.Id