CREATE TABLE `accounts` (
	`id` text PRIMARY KEY NOT NULL,
	`email` text NOT NULL,
	`provider` text DEFAULT 'claude' NOT NULL,
	`config_dir` text NOT NULL,
	`is_exhausted` integer DEFAULT false NOT NULL,
	`exhausted_until` integer,
	`last_used_at` integer,
	`sort_order` integer DEFAULT 0 NOT NULL,
	`created_at` integer NOT NULL,
	`updated_at` integer NOT NULL
);
--> statement-breakpoint
ALTER TABLE `agents` ADD `provider` text DEFAULT 'claude' NOT NULL;--> statement-breakpoint
ALTER TABLE `agents` ADD `account_id` text REFERENCES accounts(id);