StorePurchases table
The StorePurchases table in the Shipfolio schema has 15 columns, keyed by Id, with 2 foreign keys to AspNetUsers and Companies.
Columns (15)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| UserId | uuid | not null, references AspNetUsers.Id | |
| ProductId | varchar(100) | not null | |
| Kind | varchar(50) | not null | |
| ListingId | uuid | ||
| JobPostingId | uuid | ||
| OfferId | uuid | ||
| Status | varchar(50) | not null | |
| Store | varchar(50) | ||
| TransactionId | varchar(255) | ||
| Sandbox | boolean | not null | |
| AmountCents | bigint | ||
| CreatedAt | timestamptz | not null | |
| CompletedAt | timestamptz | ||
| CompanyId | uuid | references Companies.Id |
Indexes (2)
(CompanyId)(IX_StorePurchases_CompanyId)(UserId, ProductId, Status)(IX_StorePurchases_UserId_ProductId_Status)
Relationships
StorePurchases.UserIdreferencesAspNetUsers.IdStorePurchases.CompanyIdreferencesCompanies.Id