Files
yourpart3/backend/migrations
Torsten Schulz (local) 86e14a875d
All checks were successful
Deploy to production / deploy (push) Successful in 2m59s
feat(falukant): add scandalExtraDailyPct field and update related components
- Introduced a new field `scandalExtraDailyPct` in the relationship state model to track additional scandal risk per day, with validation constraints.
- Updated the FalukantService to include the new field in relevant calculations and data handling.
- Enhanced the frontend components, including RevenueSection and FamilyView, to display the scandal risk information and updated price calculations.
- Added localization entries for the new field in multiple languages to ensure clarity for users.
2026-04-13 15:31:47 +02:00
..
2024-07-28 16:12:48 +02:00

Backend-Migrationen (Sequelize)

Migrationen in diesem Ordner werden mit dem Sequelize-CLI ausgeführt (Konfiguration siehe Projekt-Root / backend).

Falukant: Zertifikat und Produktionszählung

Datei Inhalt
20260402140000-add-certificate-productions-count-since.cjs Spalte falukant_data.falukant_user.certificate_productions_count_since (TIMESTAMPTZ, nullable) inkl. Kommentar. Setzt die DB-Grundlage dafür, dass Daemon, Backend und UI dieselbe Periode für „abgeschlossene Produktionen“ nutzen (Filter mit COALESCE(production_timestamp, production_date::timestamp) ab diesem Zeitpunkt; NULL = bisherige Historie).

Eine parallele SQL-Migration im Daemon-Repository (z.B. 014_falukant_certificate_productions_count_since.sql) kann dieselbe Spalte anlegen, wenn das Deployment dort getrennt ist Schema doppelt anlegen vermeiden.

Details zur Zähl- und Retention-Logik: docs/FALUKANT_PRODUCTION_CERTIFICATE.md.