Prisma user id is Int but referenced as string
When I generate the schema with Prisma the user id in user modal is from type Int. But the references of the id is defined as string.
I get the error:
Error parsing attribute "@relation": The type of the field userId in the model Session is not matching the type of the referenced field id in model User.Prisma
npx @better-auth/cli generate --config ./app/utils/auth.server.ts --output ./prisma/schema.prisma
Output:
1 Reply
looks like I used a older cli version