© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Prisma Adapter Issues - Better Auth
BA
Better Auth
•
7mo ago
•
5 replies
0xJJW
Prisma Adapter Issues
We customise all our tables to be snake
_case via mappings
(
https://www.better-auth.com/docs/concepts/database#custom-tables
)
Today we switched from Postgres
(Kysely
) to Prisma Postgres
(Prisma Adapter
)
.
We have noticed several issues
:
1
.
[FIXED IN
PR
] Incorrect field mapping in
getTables()
getTables()
which I have reported
.
GitHub Issue
2
. I also noticed FK
's in our schema are incorrect
.
memberss Members[]
invitationss Invitations[]
memberss Members[]
invitationss Invitations[]
We manually map fields using the recommended approach and we do not use
usePlural
usePlural
.
Has anyone else ran into this
?
We did not have this issue when using Turso or Postgres via Kysely
.
GitHub
DB: Incorrect Field Mapping · Issue #4564 · better-auth/better-auth
Is this suited for github
? Yes
, this is suited for github To Reproduce TLDR
: Incorrect mapping in getTables
(
) better
-auth
/packages
/better
-auth
/src
/db
/get
-tables
.ts Line 228 in 5b78469 options
.accou
.
.
.
Database | Better Auth
Learn how to use a database with Better Auth
.
Better Auth
Join
10,204
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Prisma Adapter not generating models
BA
Better Auth / bug-reports
2y ago
Magic link plugin broken with Prisma adapter
BA
Better Auth / bug-reports
3w ago
Failed to initialize database adapter
BA
Better Auth / bug-reports
17mo ago