Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Custom field name or rename field in model for NextAuth.js (Prisma adapter) - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
4y ago
•
18 replies
Bennett
Custom field name or rename field in model for NextAuth.js (Prisma adapter)
Hey
!
I
'm not a fan of fields named
id
id
, but rather like to have speaking names like
userId
userId
or
postId
postId
, which makes the code easier to read imo
.
I
'm using the Prisma adapter and added all needed models to my schema
. In the
User
User
model
, I would like to use a field name
userId
userId
instead of
id
id
. Is this possible
?
Theo's Typesafe Cult
Join
26,564
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Does Prisma adapter work with credentials in NextAuth?
TTC
Theo's Typesafe Cult / questions
4y ago
[AdapterError] NextAuth with Drizzle Adapter on Edge
TTC
Theo's Typesafe Cult / questions
15mo ago
Prisma model name preferences
TTC
Theo's Typesafe Cult / questions
4y ago
auth.js v5 or 'NextAuth'
TTC
Theo's Typesafe Cult / questions
2y ago