© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3mo ago•
27 replies
Mockafjongen

Could not find a relationship between 'ev_opportunities' and 'sportsbooks' in the schema cache

PostgREST🟡javascript
I just added a foreign key from my ev_opportunities table to my sportsbooks table just as I have done with other tables in the past.

For some reason, i get
{
  code: 'PGRST200',
  details: "Searched for a foreign key relationship between 'ev_opportunities' and 'sportsbooks' in the schema 'public', but no matches were found.",
  hint: null,
  message: "Could not find a relationship between 'ev_opportunities' and 'sportsbooks' in the schema cache"
}
{
  code: 'PGRST200',
  details: "Searched for a foreign key relationship between 'ev_opportunities' and 'sportsbooks' in the schema 'public', but no matches were found.",
  hint: null,
  message: "Could not find a relationship between 'ev_opportunities' and 'sportsbooks' in the schema cache"
}
Screenshot_2025-11-30_at_17.29.13.png
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

Could not find a relationship in the schema cache
SupabaseSSupabase / help-and-questions
13mo ago
Could not find a relationship between 'messages' and 'user' in the schema cache
SupabaseSSupabase / help-and-questions
14mo ago
Could not find a relationship between 'lists' and 'creator'
SupabaseSSupabase / help-and-questions
4y ago
Could not find a relationship between 'products' and 'prices'
SupabaseSSupabase / help-and-questions
4y ago