create table account_centers ( tenant_id varchar(21) not null references tenants (id) on update cascade on delete cascade, id varchar(21) not null, /** The whole feature can be disabled */ enabled boolean not null default false, /** Control each fields */ fields jsonb /* @use AccountCenterFieldControl */ not null default '{}'::jsonb, primary key (tenant_id, id) );