Stabilize news provider chain

This commit is contained in:
Codex
2026-05-08 17:08:55 +08:00
parent 85c471a0ef
commit afe34a2b7b
10 changed files with 518 additions and 93 deletions
@@ -0,0 +1,13 @@
create table if not exists news_provider_snapshots (
id bigserial primary key,
provider_name text not null unique,
fetched_ts timestamptz,
freshness_code text not null,
event_count integer not null default 0,
is_active boolean not null default false,
code text not null,
active_events jsonb not null default '[]'::jsonb,
error text,
raw_payload jsonb not null default '{}'::jsonb,
updated_at timestamptz not null default now()
);