Skip to content

auth() cannot be resolved because no "User" model is defined [auth()] #526

Answered by ymc9
draylegend asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @draylegend , Prisma supports to use the @@map attribute to connect to tables with different names. Maybe you can do it this way?

model User {
    ...
    @@map('my_user_table')
}

Btw, please consider joining our discord server for discussions 😄
https://discord.com/invite/Ykhr738dUe

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by draylegend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants