admin plugin generates invalid prisma schema

after running
npx @better-auth/cli generate
npx @better-auth/cli generate
i got this error in the schema.prisma
Error validating model "User": Ambiguous relation detected. The fields `Session` and `sessions` in model `User` both refer to `Session`. Please provide different relation names for them by adding `@relation(<name>).Prisma
Error validating model "User": Ambiguous relation detected. The fields `Session` and `sessions` in model `User` both refer to `Session`. Please provide different relation names for them by adding `@relation(<name>).Prisma
No description
1 Reply
Ping
Ping5d ago
Can you share your auth config?

Did you find this page helpful?