Move drizzle/, dist/, and coverage/ into apps/server/ so all server-specific artifacts live alongside the source they belong to. - git mv drizzle/ → apps/server/drizzle/ - drizzle.config.ts: out → ./apps/server/drizzle - tsconfig.json: outDir → ./apps/server/dist, exclude drizzle dir - package.json: main/bin/clean point to apps/server/dist/ - vitest.config.ts: reportsDirectory → ./apps/server/coverage - .gitignore: add coverage/ entry - ensure-schema.ts: update getMigrationsPath() for new layout - docs/database-migrations.md: update drizzle/ references
16 lines
488 B
SQL
16 lines
488 B
SQL
CREATE TABLE `proposals` (
|
|
`id` text PRIMARY KEY NOT NULL,
|
|
`agent_id` text NOT NULL REFERENCES `agents`(`id`) ON DELETE cascade,
|
|
`initiative_id` text NOT NULL REFERENCES `initiatives`(`id`) ON DELETE cascade,
|
|
`target_type` text NOT NULL,
|
|
`target_id` text,
|
|
`title` text NOT NULL,
|
|
`summary` text,
|
|
`content` text,
|
|
`metadata` text,
|
|
`status` text NOT NULL DEFAULT 'pending',
|
|
`sort_order` integer NOT NULL DEFAULT 0,
|
|
`created_at` integer NOT NULL,
|
|
`updated_at` integer NOT NULL
|
|
);
|