From d6aa5f683faee0d71bcf94b94b1eff70a7aa467c Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 28 Sep 2025 18:24:10 +0000 Subject: [PATCH] Add security functions and policies --- .../20250928182338_a3d67af0-bfbc-4a93-812e-148600901d73.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 supabase/migrations/20250928182338_a3d67af0-bfbc-4a93-812e-148600901d73.sql diff --git a/supabase/migrations/20250928182338_a3d67af0-bfbc-4a93-812e-148600901d73.sql b/supabase/migrations/20250928182338_a3d67af0-bfbc-4a93-812e-148600901d73.sql new file mode 100644 index 00000000..b68a7b68 --- /dev/null +++ b/supabase/migrations/20250928182338_a3d67af0-bfbc-4a93-812e-148600901d73.sql @@ -0,0 +1,5 @@ +-- First, add superuser role to the app_role enum +ALTER TYPE public.app_role ADD VALUE IF NOT EXISTS 'superuser'; + +-- Add banned column to profiles table +ALTER TABLE public.profiles ADD COLUMN IF NOT EXISTS banned boolean NOT NULL DEFAULT false; \ No newline at end of file