fixed backend port for shifts

This commit is contained in:
2025-10-10 18:58:48 +02:00
parent 27eea33efc
commit 541af0afee
7 changed files with 34 additions and 9 deletions

View File

@@ -1,3 +1,4 @@
-- Add employee fields
ALTER TABLE users ADD COLUMN employee_type TEXT CHECK(employee_type IN ('chef', 'neuling', 'erfahren'));
ALTER TABLE users ADD COLUMN is_sufficiently_independent BOOLEAN DEFAULT FALSE;
ALTER TABLE users ADD COLUMN is_sufficiently_independent BOOLEAN DEFAULT FALSE;
ALTER TABLE users ADD COLUMN last_login TEXT DEFAULT NULL;

View File

@@ -9,7 +9,7 @@ CREATE TABLE IF NOT EXISTS users (
is_sufficiently_independent BOOLEAN DEFAULT FALSE,
is_active BOOLEAN DEFAULT TRUE,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
last_login DATETIME
last_login TEXT || NULL
);
-- Tabelle für Schichtvorlagen