various fixes

raw sql to drizzle
This commit is contained in:
dimitar committed 2026-03-19 00:57:04 +01:00
1 parent ffd3aabc55
commit d6a77fcd23
5 files changed
+57 -30

No files matched your search

+2 -2
View File
@@ -53,10 +53,10 @@ export const gyms = sqliteTable(
adminUserId: text("admin_user_id")
.notNull()
.references(() => users.id, { onDelete: "cascade" }),
createdAt: integer("created_at", { mode: "timestamp" })
createdAt: integer("created_at", { mode: "timestamp_ms" })
.notNull()
.$defaultFn(() => new Date()),
updatedAt: integer("updated_at", { mode: "timestamp" })
updatedAt: integer("updated_at", { mode: "timestamp_ms" })
.notNull()
.$defaultFn(() => new Date()),
},