CREATE TABLE settings_data (
    id bigserial PRIMARY KEY,
    biz_id bigint NOT NULL,
    emails text[] NOT NULL DEFAULT '{}',
    notifications jsonb NOT NULL,
    created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);

CREATE UNIQUE INDEX settings_data_biz_id_uq ON settings_data USING btree (biz_id);
