Skip to content

Commit f5c4d35

Browse files
committed
feat(mobile): add AI summary generation for entries
- Implement AI summary feature for entry details - Add summaries table to database schema - Create summary service and store for managing summaries - Introduce new components for displaying AI-generated summaries - Add header actions for generating and toggling summaries - Integrate with API for summary generation Signed-off-by: Innei <tukon479@gmail.com>
1 parent 39ca541 commit f5c4d35

File tree

21 files changed

+1801
-187
lines changed

21 files changed

+1801
-187
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CREATE TABLE `summaries` (
2+
`entry_id` text PRIMARY KEY NOT NULL,
3+
`summary` text,
4+
`created_at` text,
5+
`language` text
6+
);
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
PRAGMA foreign_keys=OFF;--> statement-breakpoint
2+
CREATE TABLE `__new_summaries` (
3+
`entry_id` text PRIMARY KEY NOT NULL,
4+
`summary` text NOT NULL,
5+
`created_at` text,
6+
`language` text NOT NULL
7+
);
8+
--> statement-breakpoint
9+
INSERT INTO `__new_summaries`("entry_id", "summary", "created_at", "language") SELECT "entry_id", "summary", "created_at", "language" FROM `summaries`;--> statement-breakpoint
10+
DROP TABLE `summaries`;--> statement-breakpoint
11+
ALTER TABLE `__new_summaries` RENAME TO `summaries`;--> statement-breakpoint
12+
PRAGMA foreign_keys=ON;--> statement-breakpoint
13+
CREATE UNIQUE INDEX `unq` ON `summaries` (`entry_id`,`language`);

0 commit comments

Comments
 (0)