Programs table

The Programs table in the FitStack - V2 schema has 24 columns, keyed by Id, with 1 foreign key to Users. 7 columns in Workouts, ProgramWeeks, ProgramTags, ProgramRatings and 3 more reference it.

Columns (24)

Columns of the Programs table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
Nametextnot null
Descriptiontextnot null
Slugtextnot null
CreatedByIdtextnot null, references Users.Id
ProgramTypeintegernot null
DifficultyLevelintegernot null
WeekCountintegernot null
SessionsPerWeekintegernot null
CoverImageUrltext
Notestext
RequiredEquipmenttext
Prerequisitestext
IsPublicbooleannot null
CurrentVersionintegernot null
PriceCentsintegernot null
Currencycharacter varying(3)not null
IsListedbooleannot null
StripeProductIdtext
StripePriceIdtext
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Indexes (1)

  • (Slug) unique (IX_Programs_Slug)

Relationships