Add tone support

This commit is contained in:
2025-04-08 18:38:07 +03:00
parent 8082eae230
commit 3fb4afd4fa
8 changed files with 53 additions and 18 deletions

View File

@@ -28,7 +28,7 @@ export const users = sqliteTable("users", {
sex: text("sex"),
weight: integer("weight"),
createdAt: integer("created_at", { mode: "timestamp" }).$defaultFn(
() => new Date()
() => new Date(),
),
});
@@ -43,10 +43,12 @@ export const preferences = sqliteTable("preferences", {
.$type<{
enabled: boolean;
language: string;
tone: string;
}>()
.$defaultFn(() => ({
enabled: true,
language: "English",
tone: "Casual",
})),
});