feat: ficha por cliente en portafolio (conexiones, accesos, logo, módulos)

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>
This commit is contained in:
4Ventures
2026-09-24 10:51:21 +02:00
parent 21051afda9
commit dd0e867108
13 changed files with 1612 additions and 84 deletions

13
sql/tenant_ficha.sql Normal file
View File

@@ -0,0 +1,13 @@
-- 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: {} }';