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)

Columns of the CoachOfferings table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
CoachIduuidnot null, references Coaches.IdCASCADE.
Namecharacter varying(200)not nulle.g. "12-week strength block".
Descriptioncharacter varying(2000)
PriceCentsintegernot nullInteger cents, matching the marketplace tables (52). The Gym draft used numeric(8,2), which does not agree with the rest of the product.
Currencycharacter varying(3)not null
Intervaltextnot null`CoachOfferingInterval`.
SessionsIncludedintegerAppointments included per interval. Null = unlimited or not session-based.
IsListedbooleannot null
StripeProductIdtext
StripePriceIdtext
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Indexes (1)

  • (CoachId, IsListed) (IX_CoachOfferings_CoachId_IsListed)

Relationships