CREATE TABLE IF NOT EXISTS runtime_config (
    id BOOLEAN PRIMARY KEY DEFAULT TRUE,
    payload JSONB NOT NULL DEFAULT '{}'::jsonb,
    updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),
    CONSTRAINT runtime_config_single_row CHECK (id = TRUE)
);

INSERT INTO runtime_config (id, payload)
VALUES (TRUE, '{}'::jsonb)
ON CONFLICT (id) DO NOTHING;

