CloudCostSnapshots table
The CloudCostSnapshots table in the Shipfolio schema has 9 columns, keyed by Id, with 1 foreign key to Listings.
Columns (9)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| ListingId | uuid | not null, references Listings.Id | |
| Provider | varchar(50) | not null | |
| Month | date | not null | |
| Currency | varchar(3) | not null | |
| TotalCents | bigint | not null | |
| Source | varchar(50) | not null | |
| SyncedAt | timestamptz | not null | |
| ByService | jsonb |
Indexes (2)
(ListingId, Provider, Month)unique (IX_CloudCostSnapshots_ListingId_Provider_Month)(Month)(IX_CloudCostSnapshots_Month)
Relationships
CloudCostSnapshots.ListingIdreferencesListings.Id