© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
9 replies
Sand Kingston

Make composite primary key unique

Hey, guys, I'm trying to create a M-N relation with both foreign keys marked as primary. In this case, I wanted to mark the resulting composite key as unique, is that possible in Supabase? I know I can individually mark them as unique, but I believe that won't be equivalent to what I'm looking for
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

Composite Primary Key creation error
SupabaseSSupabase / help-and-questions
4y ago
primary key
SupabaseSSupabase / help-and-questions
4y ago
Composite key foreign key issue
SupabaseSSupabase / help-and-questions
6mo ago
How do I create a composite key?
SupabaseSSupabase / help-and-questions
4y ago