nis2-agile/docs/sql/005_consultant_support.sql
DevEnv nis2-agile 7080695d06 [FEAT] Ruolo Consulente + Wizard Registrazione v2
- register.html: step 0 scelta profilo (Azienda / Consulente)
- onboarding.html: wizard 4-step con P.IVA obbligatoria (auto-fetch CertiSource)
- companies.html: nuova dashboard consulente con cards aziende e compliance score
- common.js: org-switcher sidebar + role labels corretti per consulente
- login.html: routing post-login (consulente → companies.html)
- api.js: isConsultant(), setUserRole(), register con user_type
- AuthController: user_type=consultant → role=consultant in users table
- OnboardingController: multi-org per consulente, duplicate VAT check
- 005_consultant_support.sql: aggiunge 'consultant' a user_organizations.role ENUM

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-20 08:53:30 +01:00

9 lines
371 B
SQL

-- =============================================
-- Migration 005: Supporto ruolo Consulente
-- Aggiunge 'consultant' all'enum di user_organizations.role
-- =============================================
ALTER TABLE user_organizations
MODIFY COLUMN role ENUM('org_admin','compliance_manager','board_member','auditor','employee','consultant')
NOT NULL DEFAULT 'employee';