How to change @id default format with prisma

Hello guys model User { id String @id @default(dbgenerated("concat('usr_', (nextval('user_seq'::regclass))::text)")) ...other fields } I want to use this definition in Prisma, but it seems that BetterAuth generates the id by itself. So I can't use this custom id generation. How can I make it work with my custom id logic? @Ping sorry for the mention 😄
2 Replies
Ping
Ping•2mo ago
You can disable better-auth id generation by adding this to your auth config:
No description
Özgür
ÖzgürOP•2mo ago
Oh thank you so much

Did you find this page helpful?