Files
Codewalkers/drizzle/0020_add_change_sets.sql
Lukas May 342b490fe7 feat: Task decomposition for Tailwind/Radix/shadcn foundation setup
Decomposed "Foundation Setup - Install Dependencies & Configure Tailwind"
phase into 6 executable tasks:

1. Install Tailwind CSS, PostCSS & Autoprefixer
2. Map MUI theme to Tailwind design tokens
3. Setup CSS variables for dynamic theming
4. Install Radix UI primitives
5. Initialize shadcn/ui and setup component directory
6. Move MUI to devDependencies and verify setup

Tasks follow logical dependency chain with final human verification
checkpoint before proceeding with component migration.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-10 09:48:51 +01:00

26 lines
1.0 KiB
SQL

-- Add change_sets and change_set_entries tables
CREATE TABLE `change_sets` (
`id` text PRIMARY KEY NOT NULL,
`agent_id` text REFERENCES `agents`(`id`) ON DELETE SET NULL,
`agent_name` text NOT NULL,
`initiative_id` text NOT NULL REFERENCES `initiatives`(`id`) ON DELETE CASCADE,
`mode` text NOT NULL,
`summary` text,
`status` text NOT NULL DEFAULT 'applied',
`reverted_at` integer,
`created_at` integer NOT NULL
);--> statement-breakpoint
CREATE TABLE `change_set_entries` (
`id` text PRIMARY KEY NOT NULL,
`change_set_id` text NOT NULL REFERENCES `change_sets`(`id`) ON DELETE CASCADE,
`entity_type` text NOT NULL,
`entity_id` text NOT NULL,
`action` text NOT NULL,
`previous_state` text,
`new_state` text,
`sort_order` integer NOT NULL DEFAULT 0,
`created_at` integer NOT NULL
);--> statement-breakpoint
CREATE INDEX `change_sets_initiative_id_idx` ON `change_sets`(`initiative_id`);--> statement-breakpoint
CREATE INDEX `change_set_entries_change_set_id_idx` ON `change_set_entries`(`change_set_id`);