CREATE TABLE ui_modals (
    id SERIAL,
    name varchar(255) NOT NULL,
    config jsonb DEFAULT NULL,
    tenant_id INTEGER DEFAULT NULL,
    branch_id INTEGER DEFAULT NULL,
    updatedAt TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    PRIMARY KEY (id)
);
CREATE INDEX ui_modals_tenant_idx ON ui_modals(tenant_id);
CREATE INDEX ui_modals_branch_idx ON ui_modals(branch_id);
