GymProducts table

The GymProducts table in the FitStack - V2 schema has 16 columns, keyed by Id, with 2 foreign keys to Companies and Gyms. 3 columns in GymProductImages, GymProductVariants and MembershipAddOns reference it.

Glossary: Gym Product; never "Product" on its own in FitStack Gym copy.

Columns (16)

Columns of the GymProducts table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
CompanyIduuidnot null, references Companies.Id
GymIduuidreferences Gyms.IdNull = sold at every Gym.
Namecharacter varying(200)not null
Descriptioncharacter varying(4000)
Kindtextnot null`GymProductKind`.
Categorycharacter varying(100)
TaxCodecharacter varying(50)Stripe Tax product tax code, e.g. txcd_99999999.
IsListedbooleannot nullShown in the app and on the Site. Unlisted = desk only.
RecurringIntervaltext`MembershipInterval` (82) when the product renews as an Add-on; null for one-off.
StripeProductIdtextOn the Company's connected account.
Statustextnot null`GymProductStatus`.
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Indexes (1)

  • (CompanyId, Status, IsListed) (IX_GymProducts_CompanyId_Status_IsListed)

Relationships