feat(user): update user schema to include firstName and lastName fields, modify related components and forms for user registration and profile management

This commit is contained in:
Mauricio Siu
2025-12-07 04:26:24 -06:00
parent a5353e5457
commit cdb0de9a72
11 changed files with 6995 additions and 45 deletions
+3 -1
View File
@@ -31,7 +31,8 @@ export const user = pgTable("user", {
.notNull()
.primaryKey()
.$defaultFn(() => nanoid()),
name: text("name").notNull().default(""),
firstName: text("firstName").notNull().default(""),
lastName: text("lastName").notNull().default(""),
isRegistered: boolean("isRegistered").notNull().default(false),
expirationDate: text("expirationDate")
.notNull()
@@ -332,6 +333,7 @@ export const apiUpdateUser = createSchema.partial().extend({
password: z.string().optional(),
currentPassword: z.string().optional(),
name: z.string().optional(),
lastName: z.string().optional(),
metricsConfig: z
.object({
server: z.object({