Files
Folo/apps/mobile/drizzle/0010_legal_ben_grimm.sql
T
Innei f5c4d35c6c 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>
2025-02-12 18:11:42 +08:00

13 lines
635 B
SQL

PRAGMA foreign_keys=OFF;--> statement-breakpoint
CREATE TABLE `__new_summaries` (
`entry_id` text PRIMARY KEY NOT NULL,
`summary` text NOT NULL,
`created_at` text,
`language` text NOT NULL
);
--> statement-breakpoint
INSERT INTO `__new_summaries`("entry_id", "summary", "created_at", "language") SELECT "entry_id", "summary", "created_at", "language" FROM `summaries`;--> statement-breakpoint
DROP TABLE `summaries`;--> statement-breakpoint
ALTER TABLE `__new_summaries` RENAME TO `summaries`;--> statement-breakpoint
PRAGMA foreign_keys=ON;--> statement-breakpoint
CREATE UNIQUE INDEX `unq` ON `summaries` (`entry_id`,`language`);