38960-vm/db/migrations/20260322_add_employee_to_nurses.sql
2026-03-22 10:04:41 +00:00

3 lines
184 B
SQL

ALTER TABLE nurses ADD COLUMN IF NOT EXISTS employee_id INT;
ALTER TABLE nurses ADD CONSTRAINT fk_nurse_employee FOREIGN KEY (employee_id) REFERENCES employees(id) ON DELETE SET NULL;