MietzeKatzeM
Convex Community3mo ago
3 replies
MietzeKatze

how do i define a schema that links to a better auth component table user, id field ?

I want to do this:
 tasks: defineTable({
        text: v.string(),
        isCompleted: v.boolean(),
        userId: v.id("user") <--- better-auth component table
    }),

but the convex better-auth component has its own scope and I cant seem to be able to link to it....
or is there a different syntax?
Was this page helpful?