The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: clarify use of `on delete cascade` for managing user data
Stojan Dimitrovskibcd600e42f2a
diff --git a/apps/docs/pages/guides/auth/managing-user-data.mdx b/apps/docs/pages/guides/auth/managing-user-data.mdxindex da30e0bb329..6e22af47a5d 100644--- a/apps/docs/pages/guides/auth/managing-user-data.mdx+++ b/apps/docs/pages/guides/auth/managing-user-data.mdx@@ -18,7 +18,7 @@ For example, a `public.profiles` table might look like this:```sqlcreate table public.profiles (- id uuid references auth.users not null,+ id uuid references auth.users not null on delete cascade,first_name text,last_name text,@@ -28,6 +28,12 @@ create table public.profiles (alter table public.profiles enable row level security;```+<Admonition type="note">++Make sure you specify the `on delete cascade` clause whenever referencing `auth.users`. Not including it may cause problems when deleting users.++</Admonition>+## Public accessSince Row Level Security is enabled, this table is accessible via the API but no data will be returned unless we set up some Policies.