SIM-Karten: Checkbox "eSIM" zwischen Hauptkarte und Multisim

Hardware-Plastikkarte vs. eSIM-Profil ist eigene Eigenschaft – eSIM
kann sowohl Hauptkarte als auch Multisim sein, deshalb dritter
Toggle statt entweder/oder.

- Schema: SimCard.isEsim Boolean default false, Migration mit
  IF NOT EXISTS.
- Backend: vier SimCard-Schreibpfade in contract.service.ts (Create,
  Update, Follow-Up, Renewal).
- UI: dritte Checkbox in ContractForm zwischen Hauptkarte und
  Multisim. ContractDetail zeigt blauen eSIM-Badge.
This commit is contained in:
2026-06-03 16:13:24 +02:00
parent 431792e8d9
commit 5508d59652
7 changed files with 45 additions and 0 deletions
@@ -0,0 +1,8 @@
-- SIM-Karte bekommt ein optionales `isEsim`-Flag Hardware-Plastikkarte
-- vs. eSIM-Profil. UI-Position: zwischen "Hauptkarte" und "Multisim".
--
-- IF NOT EXISTS macht den Re-Deploy auf Prod sicher, falls jemand schon
-- `prisma db push` gefahren hat.
ALTER TABLE `SimCard`
ADD COLUMN IF NOT EXISTS `isEsim` BOOLEAN NOT NULL DEFAULT false;