13 lines
442 B
SQL
13 lines
442 B
SQL
create table if not exists research_council_messages (
|
|
id bigserial primary key,
|
|
run_id bigint not null,
|
|
agent_role text not null,
|
|
message_type text not null,
|
|
payload jsonb not null default '{}'::jsonb,
|
|
created_ts timestamptz not null,
|
|
created_at timestamptz not null default now()
|
|
);
|
|
|
|
create index if not exists idx_research_council_messages_run
|
|
on research_council_messages (run_id, created_ts asc, id asc);
|