GymSubscriptions table

The GymSubscriptions table in the FitStack - V2 schema has 9 columns, keyed by Id, with 1 foreign key to Gyms. 3 columns in CoursePrices, ClassPrices and GymClientSubscriptions reference it.

A membership tier a gym offers.

Columns (9)

Columns of the GymSubscriptions table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
GymIduuidreferences Gyms.Id
Nametextnot null
Countintegernot nullSeats or visits included.
Pricenumeric(8,2)not nullINCONSISTENT with the rest of the product, which uses integer cents (PriceCents). Reconcile before building.
Typeintegernot null`GymSubscriptionType`.
Statusintegernot null`GymSubscriptionStatus`.
StartDatetimestamp with time zonenot null
RenewalDatetimestamp with time zonenot null

Relationships