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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| UserId | text | not null, references Users.Id | |
| RecurrenceType | integer | not null | |
| DaysOfWeek | integer | BITMASK of DayOfWeekFlags: Mon 1, Tue 2, Wed 4, Thu 8, Fri 16, Sat 32, Sun 64. | |
| Interval | integer | not null | |
| StartDate | date | not null | |
| EndDate | date | ||
| ScheduledTimeOfDay | time | not null | |
| UserTimezone | text | ||
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Relationships
ScheduleRecurrenceRules.UserIdreferencesUsers.IdScheduledItems.RecurrenceRuleIdreferencesScheduleRecurrenceRulesCoachCheckIns.RecurrenceRuleIdreferencesScheduleRecurrenceRules