FitnessPlans table

The FitnessPlans table in the FitStack - V2 schema has 20 columns, keyed by Id, with 1 foreign key to Users. 5 columns in FitnessPlanDays, FitnessPlanMealItems, FitnessPlanWorkoutItems, FitnessPlanEnrollments and 1 more reference it.

Columns (20)

Columns of the FitnessPlans table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
UserIdtextnot null, references Users.Id
Slugtextnot null
Nametextnot null
Descriptiontext
CoverImageUrltext
StartDatetimestamp with time zonenot null
EndDatetimestamp with time zone
IsActivebooleannot null
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_FitnessPlans_Slug)

Relationships