Files
webdev-pipeline/backlog/tasks/task-2 - Wire-Convex-data-and-storage-foundations.md
2026-06-03 21:18:36 +02:00

1.5 KiB

id, title, status, assignee, created_date, labels, dependencies, references, priority, ordinal
id title status assignee created_date labels dependencies references priority ordinal
TASK-2 Wire Convex data and storage foundations To Do
2026-06-03 19:12
mvp
backend
convex
TASK-1
PRD.md
high 2000

Description

Configure Convex Cloud for the MVP and define the core persistence model for campaigns, leads, audits, outreach records, blacklist entries, run logs, and screenshot/file storage. The goal is a typed backend foundation that can support the dashboard, agent pipeline, and public audit pages.

Acceptance Criteria

  • #1 Convex is connected to the Next.js app with generated types available
  • #2 Core tables exist for campaigns, leads, audits, outreach, blacklist, run logs, and settings metadata
  • #3 Convex File Storage is ready for desktop and mobile screenshots
  • #4 Run-status and error-log concepts are represented so background jobs are observable
  • #5 No API keys or secrets are stored in user-editable database records

Implementation Plan

  1. Add Convex project configuration and connect it to the app.
  2. Define schemas for Campaign, Lead, Audit, Outreach, BlacklistEntry, and AgentRun.
  3. Add storage conventions for screenshot files and audit assets.
  4. Add basic queries/mutations for creating and reading core records.
  5. Verify Convex generation and typechecking work locally.