Supabase [users.id]
I ran
drizzle-kit pull
to get my existing schema from Supabase. The schema output included the following
The issue was with [users.id]
. It said: Cannot find name 'users'.ts(2304). I updated [users.id]
to be [authUsers.id]
. I also imported:
Is that correct fix? The error went away, but this is all new to me.2 Replies
Yes, that's the fix! The pull could be improved, but what you have done is correct.
https://github.com/rphlmr/drizzle-supabase-rls/blob/main/database/schema.ts
This is a big demo of Drizzle with Supabase
GitHub
drizzle-supabase-rls/database/schema.ts at main · rphlmr/drizzle-su...
Contribute to rphlmr/drizzle-supabase-rls development by creating an account on GitHub.