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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| GymId | uuid | references Gyms.Id | |
| Name | text | not null | |
| Count | integer | not null | Seats or visits included. |
| Price | numeric(8,2) | not null | INCONSISTENT with the rest of the product, which uses integer cents (PriceCents). Reconcile before building. |
| Type | integer | not null | `GymSubscriptionType`. |
| Status | integer | not null | `GymSubscriptionStatus`. |
| StartDate | timestamp with time zone | not null | |
| RenewalDate | timestamp with time zone | not null |
Relationships
GymSubscriptions.GymIdreferencesGyms.IdCoursePrices.OfferIdreferencesGymSubscriptionsClassPrices.SubscriptionIdreferencesGymSubscriptionsGymClientSubscriptions.SubscriptionIdreferencesGymSubscriptions