export const games = sqliteTable("games", {
id: text("id", { length: 36 })
.primaryKey()
.$defaultFn(() => randomUUID()),
playerId: text("doctor_id")
.notNull()
.references(() => users.id),
name: text("name").notNull(),
createdAt: integer("created_at", { mode: "timestamp" }).notNull(),
updatedAt: integer("updated_at", { mode: "timestamp" }).notNull(),
deletedAt: integer("deleted_at", { mode: "timestamp" }),
});
export const games = sqliteTable("games", {
id: text("id", { length: 36 })
.primaryKey()
.$defaultFn(() => randomUUID()),
playerId: text("doctor_id")
.notNull()
.references(() => users.id),
name: text("name").notNull(),
createdAt: integer("created_at", { mode: "timestamp" }).notNull(),
updatedAt: integer("updated_at", { mode: "timestamp" }).notNull(),
deletedAt: integer("deleted_at", { mode: "timestamp" }),
});