Add checkin limits and progress statistics

This commit is contained in:
biss committed 2026-09-16 22:08:29 +08:00
1 parent cf94b1ba32
commit 8b2d1275cf
7 files changed
+83 -10

No files matched your search

+2
View File
@@ -6,5 +6,7 @@ export const progress = sqliteTable("progress", {
doneTasks: text("done_tasks").notNull().default("[]"),
mood: text("mood").notNull().default(""),
note: text("note").notNull().default(""),
checkinType: text("checkin_type").notNull().default("normal"),
checkedAt: text("checked_at").notNull().default(sql`CURRENT_TIMESTAMP`),
updatedAt: text("updated_at").notNull().default(sql`CURRENT_TIMESTAMP`),
}, (t) => [primaryKey({ columns: [t.userId, t.planDate] })]);