Relation between App Schema and Component Schema (betterAuth)
So I am having hard times grasping that ,
I have convex/schema.ts which has the following
and i have convex/betterAuth/schema.ts which has a table called user with the userId
how can i make a relation between the guest_book and the user in the guestbook_schema
I commented out the section for the userId in the guestbook_schema
if I use v.string() it works but no relation , it is just a field i will have to programatically inject the userId
I can't use v.id("user") since i will since it won't match schema validator ,
so is that possible to make relation between base app and components ?
2 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
If you don't have your own user table, the
userId field in the better auth user table should be empty, you would just use the _id of the better auth user for all relations.