Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions migrations/add_outreach_sent.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
-- outreach_sent: content-agent outputs for completed bounties (Issue #5)
-- Safe to re-run.

create table if not exists outreach_sent (
id uuid primary key default gen_random_uuid(),
bounty_id text not null,
channel text not null default 'content_agent',
content jsonb not null,
sent_at timestamptz not null default now()
);

create index if not exists outreach_sent_bounty_id_idx
on outreach_sent (bounty_id);

create index if not exists outreach_sent_channel_idx
on outreach_sent (channel);

comment on table outreach_sent is
'Generated social/blog outreach from content-agent; unique per bounty completion';
Loading