added registrationno field
All checks were successful
backend-action / build-image (push) Successful in 1m6s

This commit is contained in:
2024-05-17 15:55:34 +07:00
parent 3c37fbf59b
commit 99f9531d32
5 changed files with 509 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ export const user = sqliteTable(
id: integer("id", { mode: "number" }).primaryKey({ autoIncrement: true }),
firstName: text("firstName").notNull(),
lastName: text("lastName").notNull(),
registerno: text("registerno"),
title: text("title").notNull(),
cid: text("cid", { length: 13 }).notNull().unique(),
age: integer("age").notNull(),

View File

@@ -31,6 +31,7 @@ const opinionUpdateSchema = createInsertSchema(userOpinion)
verified: true,
})
.required({ opinionId: true });
type OpinionInsertSchema = z.infer<typeof opinionInsertSchema>;
type UserInsertSchema = z.infer<typeof userInsertSchema>;
type UserUpdateSchema = z.infer<typeof userUpdateSchema>;