Trainers table

The Trainers table in the FitStack - V2 schema has 11 columns, keyed by Id, with 1 foreign key to Media. 6 columns in Employees, Coaches, TrainerAbsences, Courses and 2 more reference it.

An Employee who leads Sessions. Replaces GymCoaches (80), which required an approved Coach.

Columns (11)

Columns of the Trainers table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
EmployeeIduuidnot nullOne trainer profile per Employee.
CoachIduuidOptional link to the Employee's FitStack Coach profile (60). Grants no data access either way.
Biocharacter varying(4000)
PhotoMediaIduuidreferences Media.Id
Specialtiestext[]not null
IsListedbooleannot nullShown on the Site's Trainers page.
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Indexes (1)

  • (EmployeeId) unique (IX_Trainers_EmployeeId)

Relationships