@zonease/aiworker-cli 0.10.4 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,14 @@
1
+ CREATE TABLE `brain_journal_events` (
2
+ `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
3
+ `task_id` text,
4
+ `conversation_id` text,
5
+ `kind` text NOT NULL,
6
+ `payload` text NOT NULL,
7
+ `created_at` text NOT NULL,
8
+ FOREIGN KEY (`task_id`) REFERENCES `agent_tasks`(`id`) ON UPDATE no action ON DELETE no action,
9
+ FOREIGN KEY (`conversation_id`) REFERENCES `conversations`(`id`) ON UPDATE no action ON DELETE set null
10
+ );
11
+ --> statement-breakpoint
12
+ CREATE INDEX `brain_journal_events_conversation_created_at_idx` ON `brain_journal_events` (`conversation_id`,`created_at`);--> statement-breakpoint
13
+ CREATE INDEX `brain_journal_events_kind_created_at_idx` ON `brain_journal_events` (`kind`,`created_at`);--> statement-breakpoint
14
+ CREATE INDEX `brain_journal_events_task_created_at_idx` ON `brain_journal_events` (`task_id`,`created_at`);