Skip to content

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

Update many-to-many table structure

Steve Chavezc712ccf3819b
diff --git a/apps/docs/pages/guides/api/joins-and-nesting.mdx b/apps/docs/pages/guides/api/joins-and-nesting.mdx
index a8fccc6720e..205e1ceece0 100644
--- a/apps/docs/pages/guides/api/joins-and-nesting.mdx
+++ b/apps/docs/pages/guides/api/joins-and-nesting.mdx
@@ -138,9 +138,9 @@ create table
create table
members (
- "id" serial primary key,
"user_id" int references users,
- "team_id" int references teams
+ "team_id" int references teams,
+ primary key(user_id, team_id)
);
```