You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.3 KiB
30 lines
1.3 KiB
CREATE TABLE `agent_tool_logs` (
|
|
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
`tool_id` text NOT NULL,
|
|
`tool_slug` text(50) NOT NULL,
|
|
`user_id` integer,
|
|
`input` text NOT NULL,
|
|
`output` text,
|
|
`status` text(20) NOT NULL,
|
|
`error_message` text,
|
|
`duration_ms` integer NOT NULL,
|
|
`created_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE INDEX `agent_tool_logs_tool_id_idx` ON `agent_tool_logs` (`tool_id`);--> statement-breakpoint
|
|
CREATE INDEX `agent_tool_logs_created_at_idx` ON `agent_tool_logs` (`created_at`);--> statement-breakpoint
|
|
CREATE TABLE `agent_tools` (
|
|
`id` text PRIMARY KEY NOT NULL,
|
|
`name` text(50) NOT NULL,
|
|
`slug` text(50) NOT NULL,
|
|
`description` text NOT NULL,
|
|
`type` text(30) NOT NULL,
|
|
`config` text NOT NULL,
|
|
`enabled` integer DEFAULT 1 NOT NULL,
|
|
`sort_order` integer DEFAULT 0 NOT NULL,
|
|
`created_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL,
|
|
`updated_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE UNIQUE INDEX `agent_tools_slug_idx` ON `agent_tools` (`slug`);--> statement-breakpoint
|
|
CREATE INDEX `agent_tools_enabled_idx` ON `agent_tools` (`enabled`);
|