ScheduleRecurrenceRules table

The ScheduleRecurrenceRules table in the FitStack - V2 schema has 13 columns, keyed by Id, with 1 foreign key to Users. 2 columns in ScheduledItems and CoachCheckIns reference it.

Reused by coaching check-ins (63) rather than inventing a second recurrence primitive.

Columns (13)

Columns of the ScheduleRecurrenceRules table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
UserIdtextnot null, references Users.Id
RecurrenceTypeintegernot null
DaysOfWeekintegerBITMASK of DayOfWeekFlags: Mon 1, Tue 2, Wed 4, Thu 8, Fri 16, Sat 32, Sun 64.
Intervalintegernot null
StartDatedatenot null
EndDatedate
ScheduledTimeOfDaytimenot null
UserTimezonetext
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Relationships