admin plugin generates invalid prisma schema

after running
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
Screenshot_2025-03-19_at_9.25.53_AM.png
Was this page helpful?