mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-26 01:44:53 +10:00
893df25aff
Add an Applications module at /dashboard/applications: pipeline board (dnd-kit), table view with bulk actions, Insights (fit tiles, funnel, sources, shareable funnel-flow SVG), campaigns, tags, CSV import, and Add/Edit/Detail slide-overs. Each application links a live Reactive Resume. AI "Application Copilot" (applications.ai.*): job-posting autofill, resume↔job match score (fit ring), resume tailoring, and cover-letter / follow-up drafting — via the user's configured provider. Board cards + table rows get context menus (edit / move / archive / delete). Charts are CSS/SVG (no new chart dep); adds a UI Checkbox. Also includes local TanStack devtools setup and toolchain bumps. Claude-Session: https://claude.ai/code/session_01TEeRHnEayw2MFCShFRyL5f
30 lines
1.3 KiB
SQL
30 lines
1.3 KiB
SQL
CREATE TABLE "application" (
|
|
"id" text PRIMARY KEY,
|
|
"user_id" text NOT NULL,
|
|
"company" text NOT NULL,
|
|
"role" text NOT NULL,
|
|
"location" text,
|
|
"salary" text,
|
|
"status" text DEFAULT 'saved' NOT NULL,
|
|
"archived" boolean DEFAULT false NOT NULL,
|
|
"resume_id" text,
|
|
"source" text,
|
|
"source_url" text,
|
|
"job_description" text,
|
|
"match_score" integer,
|
|
"ai_metadata" jsonb,
|
|
"campaign" text,
|
|
"notes" text,
|
|
"follow_up_at" timestamp with time zone,
|
|
"follow_up_note" text,
|
|
"contacts" jsonb DEFAULT '[]' NOT NULL,
|
|
"activity" jsonb DEFAULT '[]' NOT NULL,
|
|
"applied_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE INDEX "application_user_id_index" ON "application" ("user_id");--> statement-breakpoint
|
|
CREATE INDEX "application_user_id_updated_at_index" ON "application" ("user_id","updated_at" DESC NULLS LAST);--> statement-breakpoint
|
|
ALTER TABLE "application" ADD CONSTRAINT "application_user_id_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "user"("id") ON DELETE CASCADE;--> statement-breakpoint
|
|
ALTER TABLE "application" ADD CONSTRAINT "application_resume_id_resume_id_fkey" FOREIGN KEY ("resume_id") REFERENCES "resume"("id") ON DELETE SET NULL; |