INSIGHT-MVP/packages/crm-service/prisma/migrations
Thomas Reitz 4c739945f0 feat(crm): Projektanfrage-Vorgangstyp – isProjectType + ProjectRequestDetails
Backend:
- DealType.isProjectType Boolean-Flag (Admin-konfigurierbar in CRM Settings)
- Neue 1:1-Tabelle project_request_details (ON DELETE CASCADE):
  notes, workload, startDate, duration, onsitePercent, rateRemote, rateOnsite
- Migration 20260313_project_request
- ProjectRequestDto mit Validierung (0-100% fuer Auslastung/Vorort-Anteil)
- Deals-Service: nested create + upsert fuer projectRequest

Frontend:
- DealFormModal: Vorgangsart-Dropdown an Anfang verschoben;
  Projektanfrage-Sektion erscheint conditional bei isProjectType=true
  (Beschreibung, Auslastung/Start, Laufzeit/Vorort-Anteil, Stundensaetze)
- CrmSettingsPage: DealTypesConfig mit Projektanfrage-Checkbox + Tabellenspalte
- types.ts: ProjectRequestDetails, CreateProjectRequestPayload, Deal.projectRequest

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 17:17:40 +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