various fixes
raw sql to drizzle
This commit is contained in:
1 parent
ffd3aabc55
commit
d6a77fcd23
5 files changed
+57
-30
No files matched your search
@@ -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()),
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user