CoachOfferings table
The CoachOfferings table in the FitStack - V2 schema has 15 columns, keyed by Id, with 1 foreign key to Coaches. 1 column in CoachClientSubscriptions references it.
What a coach sells. Renamed from the draft `CoachSubscriptions`, which confusingly named the PLAN rather than a client subscription TO a plan.
Columns (15)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| CoachId | uuid | not null, references Coaches.Id | CASCADE. |
| Name | character varying(200) | not null | e.g. "12-week strength block". |
| Description | character varying(2000) | ||
| PriceCents | integer | not null | Integer cents, matching the marketplace tables (52). The Gym draft used numeric(8,2), which does not agree with the rest of the product. |
| Currency | character varying(3) | not null | |
| Interval | text | not null | `CoachOfferingInterval`. |
| SessionsIncluded | integer | Appointments included per interval. Null = unlimited or not session-based. | |
| IsListed | boolean | not null | |
| StripeProductId | text | ||
| StripePriceId | text | ||
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (1)
(CoachId, IsListed)(IX_CoachOfferings_CoachId_IsListed)
Relationships
CoachOfferings.CoachIdreferencesCoaches.IdCoachClientSubscriptions.OfferingIdreferencesCoachOfferings