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

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