Feed the database

This commit is contained in:
2026-03-06 19:11:41 +02:00
parent 1b31f3194d
commit d8be1c0a69
5 changed files with 346 additions and 3 deletions

View File

@@ -9,9 +9,9 @@ export const users = sqliteTable("users", {
country: text("country"),
sex: text("sex"),
weight: integer("weight"),
createdAt: integer("created_at", { mode: "timestamp" })
.notNull()
.$defaultFn(() => new Date()),
createdAt: integer("created_at", { mode: "timestamp" }).$defaultFn(
() => new Date(),
),
});
export const preferences = sqliteTable("preferences", {