compassmock/drizzle/0014_new_giant_girl.sql
Nicholai e3b708317c
feat(agent): AI model config with admin controls (#48)
* feat(agent): add AI model config with admin controls

per-user model selection with admin cost ceiling and
toggle. models filter/sort by output token cost. adds
usage tracking, provider icons, and settings UI.

* docs: add openclaw discord integration notes

---------

Co-authored-by: Nicholai <nicholaivogelfilms@gmail.com>
2026-02-06 20:36:31 -07:00

11 lines
480 B
SQL
Executable File

CREATE TABLE `user_model_preference` (
`user_id` text PRIMARY KEY NOT NULL,
`model_id` text NOT NULL,
`prompt_cost` text NOT NULL,
`completion_cost` text NOT NULL,
`updated_at` text NOT NULL,
FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE no action
);
--> statement-breakpoint
ALTER TABLE `agent_config` ADD `max_cost_per_million` text;--> statement-breakpoint
ALTER TABLE `agent_config` ADD `allow_user_selection` integer DEFAULT 1 NOT NULL;