Studios table

The Studios table in the FitStack - V2 schema has 13 columns, keyed by Id, with 1 foreign key to Gyms. 3 columns in Courses, CourseSchedules and Sessions reference it.

Replaces ClassRooms (81). Glossary: Studio; avoid Room, Class Room.

Columns (13)

Columns of the Studios table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
GymIduuidnot null, references Gyms.Id
Namecharacter varying(200)not nullWas nullable on ClassRooms; a Studio always has a name.
Descriptioncharacter varying(1000)
Capacityintegernot null
OffsiteAddresstextSet only when the Studio is not at the Gym (a park, a pool). Null = at the Gym's address.
OffsiteCitytext
OffsiteStatetext
OffsiteZiptext
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Indexes (1)

  • (GymId) (IX_Studios_GymId)

Relationships