export const patient = mysqlTable("patient", {
id: serial("id").primaryKey(),
firstName: varchar("firstName", { length: 256 }).notNull(),
middleName: varchar("middleName", { length: 256 }),
lastName: varchar("lastName", { length: 256 }).notNull(),
dob: date("dob", { mode: "date" }).notNull(),
sex: varchar("sex", { length: 32 }),
villageId: int("villageId"),
createdAt: datetime("createdAt", { mode: "date", fsp: 3 })
.default(sql
export const patient = mysqlTable("patient", {
id: serial("id").primaryKey(),
firstName: varchar("firstName", { length: 256 }).notNull(),
middleName: varchar("middleName", { length: 256 }),
lastName: varchar("lastName", { length: 256 }).notNull(),
dob: date("dob", { mode: "date" }).notNull(),
sex: varchar("sex", { length: 32 }),
villageId: int("villageId"),
createdAt: datetime("createdAt", { mode: "date", fsp: 3 })
.default(sql