INSIGHT-MVP/packages/crm-service/prisma/migrations
Thomas Reitz de4af77c5c feat: CRM Berechtigungsmodell — konfigurierbares Sichtbarkeitsmodell (OWN/TEAM/ALL)
Implementiert pro-Entity Sichtbarkeitssteuerung für Companies, Contacts, Deals
und Activities mit Rollen-basierter Zugriffskontrolle (ADMIN sieht alles,
TEAM_LEAD mindestens Team-Sicht, READONLY nur Lesezugriff).

- JWT Payload um tenantRole + department erweitert (Core + CRM)
- Team-Members-Endpoint im Core Service (GET /users/team-members)
- VisibilityModule mit Redis-Cache (CRM Service)
- ReadonlyGuard als globaler Guard (CRM Service)
- buildVisibilityFilter Utility für Prisma WHERE-Filterung
- Admin-Einstellungsseite /admin/crm-settings (Frontend)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 22:20:53 +01:00
..
20260310_add_lexware_integration feat(crm): integrate Lexware Office for vouchers and contact sync 2026-03-10 20:28:41 +01:00
20260311_add_company_detail_overhaul feat(crm): add company detail overhaul with industries, account types, relationship types 2026-03-11 09:21:57 +01:00
20260312_contract_files feat(crm): Phase 2.2-2.4 backend + contract files — vollständige CRM-Service Implementierung 2026-03-12 22:06:58 +01:00
20260312_phase1_schema_expansion feat(crm): Phase 1 backend schema expansion + frontend integration 2026-03-12 15:56:41 +01:00
20260312_phase2_custom_fields feat(crm): Phase 2.1 Custom Fields — backend + frontend integration 2026-03-12 18:22:57 +01:00
20260312_phase23_forecast feat(crm): Phase 2.2-2.4 backend + contract files — vollständige CRM-Service Implementierung 2026-03-12 22:06:58 +01:00
20260313_deal_type feat(crm): Vorgangsart (DealType) konfigurierbares Dropdown + Pipeline-Leerstate 2026-03-13 16:15:02 +01:00
20260313_project_request feat(crm): Projektanfrage-Vorgangstyp – isProjectType + ProjectRequestDetails 2026-03-13 17:17:40 +01:00
20260314_crm_visibility feat: CRM Berechtigungsmodell — konfigurierbares Sichtbarkeitsmodell (OWN/TEAM/ALL) 2026-03-14 22:20:53 +01:00