32adfb4476
Deploy App / deploy (push) Successful in 1m51s
- Theming: semantische CSS-Tokens + 3 waehlbare Schemata (Hell/Dunkel/Warm/Sunset), Umschalter im Profil-Menue, FOUC-frei via Inline-Script, localStorage; Klassen-Sweep aller Komponenten, Recharts aus Tokens - Datenmodell: Household entfaellt; Plan traegt Haushaltsform/Personen/Inflation selbst (Person -> planId, Plan -> userId); destruktive Migration (TRUNCATE); Onboarding/HouseholdSettings entfernt; Plan-Erstellung & -Einstellungen mit Profilfeldern - Popups: Element-Erstellung mit Inline-Feldern (geteilte ElementPhaseFields/ElementTransitionFields), Phase- und Plan-Popups mit Direkteingabe - Zahlenfelder: 1'000er-Runden entfernt (floorToThousand/roundToHundred weg), integer MoneyInput mit beschleunigendem Press-and-Hold-Spinner, 0-Bug-Fix, harte Live-Caps - Quote: Amortisation + Tilgung neu quotenwirksam; Restquote sichtbar (sinkt beim Verteilen); Invest-Deckel = verfuegbares Kapital + fortgeschriebener Zielwert - Carry-Forward: Startwert der Folgephase = Zielwert der Vorphase minus Uebergangs-Bezug (live abgeleitet); optionale Zusatzinvestition aus verfuegbarem Kapital - Matrix: Zelle zeigt Start -> Ziel; Uebergangs-Spaltenkopf mit "n offen"-Badge + gefuehrtem Pruef-Panel Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
41 lines
1.4 KiB
SQL
41 lines
1.4 KiB
SQL
-- V3-Rework: Das Grundprofil (Haushaltsform, Personen, Inflation) wandert vom Household
|
|
-- auf die Plan-Ebene. Bestehende Plaene/Personen sind ohne Household-Bezug bzw. ohne die
|
|
-- neuen Pflichtfelder nicht migrierbar -- die (disponiblen) Testdaten werden verworfen.
|
|
TRUNCATE TABLE "Person", "Plan" CASCADE;
|
|
|
|
-- DropForeignKey
|
|
ALTER TABLE "Household" DROP CONSTRAINT "Household_userId_fkey";
|
|
|
|
-- DropForeignKey
|
|
ALTER TABLE "Person" DROP CONSTRAINT "Person_householdId_fkey";
|
|
|
|
-- DropForeignKey
|
|
ALTER TABLE "Plan" DROP CONSTRAINT "Plan_householdId_fkey";
|
|
|
|
-- DropIndex
|
|
DROP INDEX "Person_householdId_role_key";
|
|
|
|
-- AlterTable
|
|
ALTER TABLE "Person" DROP COLUMN "householdId",
|
|
ADD COLUMN "planId" TEXT NOT NULL;
|
|
|
|
-- AlterTable
|
|
ALTER TABLE "Plan" DROP COLUMN "householdId",
|
|
DROP COLUMN "retirementAgeA",
|
|
DROP COLUMN "retirementAgeB",
|
|
ADD COLUMN "householdType" "HouseholdType" NOT NULL,
|
|
ADD COLUMN "inflationRateDefault" DOUBLE PRECISION NOT NULL,
|
|
ADD COLUMN "userId" TEXT NOT NULL;
|
|
|
|
-- DropTable
|
|
DROP TABLE "Household";
|
|
|
|
-- CreateIndex
|
|
CREATE UNIQUE INDEX "Person_planId_role_key" ON "Person"("planId", "role");
|
|
|
|
-- AddForeignKey
|
|
ALTER TABLE "Person" ADD CONSTRAINT "Person_planId_fkey" FOREIGN KEY ("planId") REFERENCES "Plan"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
|
|
-- AddForeignKey
|
|
ALTER TABLE "Plan" ADD CONSTRAINT "Plan_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|