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

Update row-level-security.mdx

syntax in create table user_id field
This commit is contained in:
mio256 authored and GitHub committed 2024-07-19 20:12:27 +00:00
1 parent 057b2f1705
commit 8f616dfee3
1 file changed
+3 -3
@@ -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
);