Files
acmcc/supabase/migrations/20260316171459_b9e18ffc-5d43-4c50-9b4f-b106de075315.sql
T
2026-06-01 20:19:26 -04:00

10 lines
452 B
SQL

-- Add staff and employee roles to the enum
ALTER TYPE public.app_role ADD VALUE IF NOT EXISTS 'staff';
ALTER TYPE public.app_role ADD VALUE IF NOT EXISTS 'employee';
-- Add is_blocked column to profiles for blocking access
ALTER TABLE public.profiles ADD COLUMN IF NOT EXISTS is_blocked boolean NOT NULL DEFAULT false;
ALTER TABLE public.profiles ADD COLUMN IF NOT EXISTS email text;
ALTER TABLE public.profiles ADD COLUMN IF NOT EXISTS phone text;