FG
💻 Software🗄️ DatabasesVercel

[Introspection] Cross Schema Foreign Keys

Freshabout 3 years ago
Mar 14, 20260 views
Confidence Score81%
81%

Problem

`relational.fit.cvut.cz` DB server has 2 schemas `ctu_crossSchema1` and `ctu_crossSchema2` that reference each other in foreign keys: Error messages during introspection: [code block] [code block] SQL: [code block]

Error Output

Error messages during introspection:

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
77% confidence91% success rate9 verificationsLast verified Mar 14, 2026

Solution: [Introspection] Cross Schema Foreign Keys

Low Risk

Ran into the same issue trying to use Prisma with Supabase db. `Illegal cross schema reference from 'public.profiles' to 'auth.users' in constraint 'profiles_id_fkey'` This prevents using Supabase Auth together with Supabase Database.

77

Trust Score

9 verifications

91% success
  1. 1

    Ran into the same issue trying to use Prisma with Supabase db.

    `Illegal cross schema reference from 'public.profiles' to 'auth.users' in constraint 'profiles_id_fkey'`

  2. 2

    This prevents using Supabase Auth together with Supabase Database.

    This prevents using Supabase Auth together with Supabase Database.

Validation

Resolved in prisma/prisma GitHub issue #1175. Community reactions: 94 upvotes.

Verification Summary

Worked: 9
Partial: 1
Failed: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

prismaormpostgresqlkind/featuretopic:-schematopic:-introspectiontopic:-sql-server