Gyms table

The Gyms table in the FitStack - V2 schema has 12 columns, keyed by Id, with 2 foreign keys to Companies and Employees. 18 columns in Studios, Courses, Sessions, GymZones and 14 more reference it.

Columns (12)

Columns of the Gyms table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
CompanyIduuidnot null, references Companies.Id
ManagerIduuidnot null, references Employees.Id
Nametextnot null
Addresstextnot null
Citytextnot null
Statetextnot null
Ziptextnot null
Latitudenumeric(11,8)Geocoded from the address.
Longitudenumeric(11,8)Geocoded from the address.
GeofencingDistancenumeric(8,2)Metres. Auto-checkout radius — UI collects miles/feet and converts.
Timezonetextnot nullIANA format, e.g. America/Chicago.

Relationships