Companies table

The Companies table in the FitStack - V2 schema has 3 columns, keyed by Id, with 2 foreign keys to Sites and Users. 4 columns in GymProducts, Orders, Employees and Gyms reference it.

A gym chain. One company owns many gyms.

Columns (3)

Columns of the Companies table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null, references Sites.CompanyId
Nametextnot null
OwnerIdtextnot null, references Users.Id

Relationships