Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: row-level-security.mdx, syntax error in create table user_id field (#28055)

mio2568f616dfee3a6
diff --git a/apps/docs/content/guides/database/postgres/row-level-security.mdx b/apps/docs/content/guides/database/postgres/row-level-security.mdx
index 039dcf14b4a..8ad8aeea5b7 100644
--- a/apps/docs/content/guides/database/postgres/row-level-security.mdx
+++ b/apps/docs/content/guides/database/postgres/row-level-security.mdx
@@ -127,7 +127,7 @@ Let's say you have a table called `profiles` in the public schema and you only w
-- 1. Create table
create table profiles (
id uuid primary key,
- user_id references auth.users,
+ user_id uuid references auth.users,
avatar_url text
);
@@ -155,7 +155,7 @@ You can create a policy where the `using` clause checks if the user owns the pro
-- 1. Create table
create table profiles (
id uuid primary key,
- user_id references auth.users,
+ user_id uuid references auth.users,
avatar_url text
);
@@ -182,7 +182,7 @@ Let's say you have a table called `profiles` in the public schema and you only w
-- 1. Create table
create table profiles (
id uuid primary key,
- user_id references auth.users,
+ user_id uuid references auth.users,
avatar_url text
);