started work on scheduling
Some checks failed
PHPUnit / test (push) Has been cancelled

This commit is contained in:
2026-07-01 10:07:20 +02:00
parent 70dca17451
commit c5c61f22ad
13 changed files with 414 additions and 4 deletions

View File

@ -294,3 +294,15 @@ CREATE TABLE IF NOT EXISTS client_program_cycle (
FOREIGN KEY(clientCode) REFERENCES client(clientCode) ON DELETE CASCADE
);
CREATE TABLE IF NOT EXISTS client_session_schedule (
clientCode TEXT NOT NULL PRIMARY KEY,
scheduledDate TEXT NOT NULL,
programCycleNumber INTEGER NOT NULL,
programSessionNumber INTEGER NOT NULL,
programSessionID TEXT,
updatedAt INTEGER NOT NULL DEFAULT 0,
FOREIGN KEY(clientCode) REFERENCES client(clientCode) ON DELETE CASCADE
);
CREATE INDEX IF NOT EXISTS idx_client_session_schedule_date
ON client_session_schedule(scheduledDate);