Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Changing user's id data type - Better Auth
BA
Better Auth
•
8mo ago
•
1 reply
FLoriduh
Changing user's id data type
Is it okay to use uuid as the data type for user
's id
? Does it have to be text
?
Will that cause any problems down the line
?
export const user = pgTable("user", {
id: uuid("id").primaryKey(),
});
export const user = pgTable("user", {
id: uuid("id").primaryKey(),
});
Better Auth
Join
9,988
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Extend type user
BA
Better Auth / help
10mo ago
Get User by ID
BA
Better Auth / help
12mo ago
Core Schema Adjustment - ID Data type from text to UUID
BA
Better Auth / help
11mo ago
Convex Better auth Desclines the v.id("user") and Id<"user">
BA
Better Auth / help
2mo ago