PlanPurchases table
The PlanPurchases table in the FitStack - V2 schema has 15 columns, keyed by Id, with 2 foreign keys to Users.
Convention-mapped — there is no EF configuration file for this entity.
Columns (15)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| BuyerUserId | text | not null, references Users.Id | |
| SellerUserId | text | not null, references Users.Id | |
| PlanType | integer | not null | |
| PlanId | uuid | not null | POLYMORPHIC — no FK. |
| Status | integer | not null | `PlanPurchaseStatus`. |
| AmountCents | integer | not null | |
| Currency | character varying(3) | not null | |
| PlatformFeeCents | integer | not null | |
| StripePaymentIntentId | text | ||
| PurchasedAt | timestamp with time zone | not null | |
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |