Persist agent-generated UIs as bookmarkable dashboards with CRUD, sidebar nav, and iterative editing support. Max 5 per user. Fresh data on each visit via saved queries. Co-authored-by: Nicholai <nicholaivogelfilms@gmail.com>
13 lines
393 B
SQL
Executable File
13 lines
393 B
SQL
Executable File
CREATE TABLE `custom_dashboards` (
|
|
`id` text PRIMARY KEY NOT NULL,
|
|
`user_id` text NOT NULL,
|
|
`name` text NOT NULL,
|
|
`description` text DEFAULT '' NOT NULL,
|
|
`spec_data` text NOT NULL,
|
|
`queries` text NOT NULL,
|
|
`render_prompt` text NOT NULL,
|
|
`created_at` text NOT NULL,
|
|
`updated_at` text NOT NULL,
|
|
FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE cascade
|
|
);
|