Appearance
Backend Documentation
This folder contains developer-facing documentation for the Nest.js backend of the mithras-crm monorepo.
All files here follow the conventions defined in docs/technical-documentation-standard.md.
Core Entities
client.md— Client lifecycle, CRUD, SharePoint folders, meetingslead.md— Lead management, follow-up, conversion to clientscompany.md— Insurance partners, employers, contact personsuser.md— User profiles, roles, authentication entry points
Client Sub-Modules
client-agenda.md— Agenda items, birthday reminders, calendar integrationclient-tasks.md— Tasks with status, priority, email notificationsclient-notes.md— Text notes per clientclient-invoices.md— Invoice creation, PDF generation, payment remindersclient-contact-person.md— Contact persons with SharePoint folder creationclient-health-insurances-kvg.md— Client KVG records with PDF exportclient-health-insurances-vvg.md— Client VVG records with PDF exportclient-collective-life.md— Client collective life records with PDF exportclient-pension-funds.md— Client pension fund recordsclient-investments.md— Client investments with file uploads
Insurance Products
health-insurances-kvg.md— KVG (mandatory) product definitionshealth-insurances-vvg.md— VVG (supplementary) product definitionshealth-insurance-region.md— Regional data for premium calculationscollective-life.md— Collective life product definitionspension-fund.md— Pension fund product definitionspartner-products.md— Vorsorge products with commission trackingproduct-property.md— Property insurance (household, liability, legal protection)
Investments & Finance
investments.md— Investment product definitionsretirement-investment.md— Retirement pillar (3a/3b) investmentsproperty-assets.md— Property asset records for insurancecommission.md— Commission data with file uploads
Tax
tax-data.md— Tax records, uploads, consultationstax-uploads.md— Tax upload trackinglate-tax-uploads.md— Late tax document management
Integrations
sharepoint.md— File and folder management in SharePointmicrosoft-graph.md— Microsoft 365 calendar and meeting integration
Cross-Cutting Concerns
auth.md— Auth0 JWT authentication, guards, CASL role-based permissionsconfiguration.md— Environment variables, config definitions, PrismaServiceaudit.md— Change history trackingexcel-export.md— Excel export for various entitieslatest-news.md— News items with attachmentsstatus.md— Health checks, version infoview.md— Saved filters and views
How to use
- When you change or add a backend feature module, update or create the corresponding file in this folder.
- Prefer small, focused docs with links to other files over large, monolithic documents.
- Use Mermaid diagrams for key flows and interactions where they improve clarity.