mirror of
https://github.com/donpat1to/Schichtenplaner.git
synced 2026-01-21 18:39:41 +01:00
fixed role handling for employees
This commit is contained in:
@@ -25,6 +25,11 @@ CREATE TABLE IF NOT EXISTS employee_roles (
|
||||
PRIMARY KEY (employee_id, role)
|
||||
);
|
||||
|
||||
-- Insert default roles if they don't exist
|
||||
INSERT OR IGNORE INTO roles (role) VALUES ('admin');
|
||||
INSERT OR IGNORE INTO roles (role) VALUES ('user');
|
||||
INSERT OR IGNORE INTO roles (role) VALUES ('maintenance');
|
||||
|
||||
-- Shift plans table
|
||||
CREATE TABLE IF NOT EXISTS shift_plans (
|
||||
id TEXT PRIMARY KEY,
|
||||
|
||||
Reference in New Issue
Block a user