How to setup relationship with auth.users and other public tables using drizzle #2537
Unanswered
mkappworks
asked this question in
Q&A
Replies: 3 comments
-
I have the same thought |
Beta Was this translation helpful? Give feedback.
0 replies
-
@mkappworks @imMatheus any updates on this topic? |
Beta Was this translation helpful? Give feedback.
0 replies
-
This looks like a good solution: supabase/supabase#19883 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on a nextjs app with supabase auth, db and drizzle ORM.
I am looking for a method to define relationship between auth.users and other public tables using drizzle.
I think we can use a trigger to duplicate the user table into profile table as per guide https://supabase.com/docs/guides/auth/managing-user-data
My question is there a way to define this sql in drizzle. I think the real question is how to get a reference of auth.users in drizzle schema?
Beta Was this translation helpful? Give feedback.
All reactions