CoursePrices table

The CoursePrices table in the FitStack - V2 schema has 4 columns, keyed by Id, with 2 foreign keys to Courses and GymSubscriptions.

Lets a Course cost different amounts by Membership Offer. From ClassPrices (81).

Columns (4)

Columns of the CoursePrices table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
CourseIduuidnot null, references Courses.IdCASCADE.
OfferIduuidnot null, references GymSubscriptions.Id
PriceCentsintegernot nullPer-Session price for holders of this Offer. 0 = included.

Indexes (1)

  • (CourseId, OfferId) unique (IX_CoursePrices_CourseId_OfferId)

Relationships