{"-- Ensure RLS is enabled and privileges are granted for aman_instances access
ALTER TABLE public.aman_instances ENABLE ROW LEVEL SECURITY","-- Grant CRUD privileges to authenticated users (RLS will still enforce row access)
GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE public.aman_instances TO authenticated","-- Ensure policies that reference user_roles can read the necessary rows
GRANT SELECT ON TABLE public.user_roles TO authenticated"}