fix(mobile): optional summary language

This commit is contained in:
DIYgod
2025-03-11 21:44:27 +08:00
parent e32a904066
commit 7e9bc66d48
6 changed files with 655 additions and 4 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ export const summariesTable = sqliteTable(
entryId: text("entry_id").notNull().primaryKey(),
summary: text("summary").notNull(),
createdAt: text("created_at").$defaultFn(() => new Date().toISOString()),
language: text("language").notNull(),
language: text("language"),
},
(table) => ({
unq: uniqueIndex("unq").on(table.entryId, table.language),