23 lines
953 B
SQL
23 lines
953 B
SQL
create table if not exists research_council_optimization_cycles (
|
|
id bigserial primary key,
|
|
cycle_key text not null unique,
|
|
instrument_id bigint not null,
|
|
status text not null,
|
|
timeframe text not null default '1m',
|
|
model_code text not null,
|
|
replay_file text null,
|
|
lesson_summary jsonb not null default '{}'::jsonb,
|
|
replay_summary jsonb not null default '{}'::jsonb,
|
|
eval_summary jsonb not null default '{}'::jsonb,
|
|
arena_summary jsonb not null default '{}'::jsonb,
|
|
next_actions jsonb not null default '[]'::jsonb,
|
|
payload jsonb not null default '{}'::jsonb,
|
|
started_ts timestamptz not null,
|
|
finished_ts timestamptz not null,
|
|
created_at timestamptz not null default now(),
|
|
updated_at timestamptz not null default now()
|
|
);
|
|
|
|
create index if not exists idx_research_council_optimization_cycles_latest
|
|
on research_council_optimization_cycles (instrument_id, finished_ts desc, id desc);
|