ScheduledItemLogs table

The ScheduledItemLogs table in the FitStack - V2 schema has 6 columns, keyed by Id, with 1 foreign key to ScheduledItems.

Joins a planned item to what actually got logged. No audit columns.

Columns (6)

Columns of the ScheduledItemLogs table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
ScheduledItemIduuidreferences ScheduledItems.Id
LogTypeintegernot null`ScheduleLogType`.
LogIduuidnot nullPOLYMORPHIC — no FK.
LinkedAttimestamp with time zonenot null
LinkedBySystembooleannot nullTrue when auto-matched, false when the user linked it by hand.

Indexes (1)

  • (ScheduledItemId, LogType, LogId) unique (IX_ScheduledItemLogs_ScheduledItemId_LogType_LogId)

Relationships