© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Changing user's id data type - Better Auth
BA
Better Auth
•
10mo 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(),
});
Similar Threads
Extend type user
BA
Better Auth / help
12mo ago
Get User by ID
BA
Better Auth / help
13mo ago
Core Schema Adjustment - ID Data type from text to UUID
BA
Better Auth / help
13mo ago
Convex Better auth Desclines the v.id("user") and Id<"user">
BA
Better Auth / help
4mo ago