© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
11 replies
Nisthar

how to have an array of foreign keys (one to many relationship)?

I have these 2 tables setup:

room:
-id

groups:
-id
-members (I want to make this an array of foreign keys pointing to users table)

A room can have multiple groups. and a group can have multiple users.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

array of foreign keys
SupabaseSSupabase / help-and-questions
4y ago
how to stream one to many relationship?
SupabaseSSupabase / help-and-questions
4y ago
RLS One to many relationship
SupabaseSSupabase / help-and-questions
4y ago
Foreign key relationship isn't one to one
SupabaseSSupabase / help-and-questions
3mo ago