Implements docs/api-contract-v2.md. Migration 002 adds follow-up fields. EchoTransport replaced by SMTP->Clipboard selection behind unchanged approval gate. Scheduler (APScheduler) daily 07:00 fetch+score, env-gated, default off. Test image installs workspace packages; build context moved to repo root. Recovered and committed by integration lead after W2 worker hit iteration limit.
12 lines
No EOL
544 B
SQL
12 lines
No EOL
544 B
SQL
-- 002_followups.sql -- follow-up rules + interview prep on application
|
|
|
|
ALTER TABLE application
|
|
ADD COLUMN IF NOT EXISTS follow_up_after_days int NOT NULL DEFAULT 7,
|
|
ADD COLUMN IF NOT EXISTS last_activity_at timestamptz NOT NULL DEFAULT now(),
|
|
ADD COLUMN IF NOT EXISTS follow_up_snoozed_until date,
|
|
ADD COLUMN IF NOT EXISTS interview_prep_artifact_id uuid REFERENCES artifact(id);
|
|
|
|
-- last_activity_at defaults to created_at for existing rows
|
|
UPDATE application
|
|
SET last_activity_at = created_at
|
|
WHERE last_activity_at IS NULL; |