-- Extend role constraint to include hotel_admin and technician ALTER TABLE users DROP CONSTRAINT IF EXISTS users_role_check; ALTER TABLE users ADD CONSTRAINT users_role_check CHECK (role IN ('hotel_admin', 'manager', 'housekeeper', 'super_admin', 'receptionist', 'accountant', 'security', 'technician')); -- Migrate existing manager users (hotel owners) to hotel_admin UPDATE users SET role = 'hotel_admin' WHERE role = 'manager';