GymClientSubscriptions table
The GymClientSubscriptions table in the FitStack - V2 schema has 6 columns, keyed by Id, with 2 foreign keys to GymClients and GymSubscriptions. 2 columns in MembershipAddOns and GymClientInvoices reference it.
A member holding a membership tier.
Columns (6)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| GymClientId | uuid | not null, references GymClients.Id | |
| SubscriptionId | uuid | not null, references GymSubscriptions.Id | |
| Name | text | not null | Snapshot of the tier name as sold. |
| StartDate | timestamp with time zone | not null | |
| RenewalDate | timestamp with time zone | not null |
Relationships
GymClientSubscriptions.GymClientIdreferencesGymClients.IdGymClientSubscriptions.SubscriptionIdreferencesGymSubscriptions.IdMembershipAddOns.MembershipIdreferencesGymClientSubscriptionsGymClientInvoices.SubscriptionIdreferencesGymClientSubscriptions