Cada tenant tiene una ficha con plataformas, invitaciones por email, logo de marca y toggles de módulos visibles en el portal cliente. Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
539 B
SQL
14 lines
539 B
SQL
-- Per-tenant ficha: logo + dashboard module settings
|
|
-- Idempotent.
|
|
|
|
alter table public.tenants
|
|
add column if not exists logo_url text;
|
|
|
|
alter table public.tenants
|
|
add column if not exists settings jsonb not null default '{}'::jsonb;
|
|
|
|
comment on column public.tenants.logo_url is
|
|
'Client logo for portal shell (URL or storage path under tenant-assets).';
|
|
comment on column public.tenants.settings is
|
|
'JSON: { modules: { kpis, crm, seguimiento, estrategia, calendario, ad-tracker, activos, creatives, asistente }, branding: {} }';
|