feat(#206,#207): cartes rose soin_enfant (backend + UI)

Closes #206

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-09 16:49:37 +02:00
co-authored by Cursor
parent 9a74c8eefe
commit f7ae13a909
20 changed files with 1464 additions and 77 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ DO $$ BEGIN
END IF;
IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'type_evenement_agenda_type') THEN
CREATE TYPE type_evenement_agenda_type AS ENUM (
'absence_enfant', 'conge_am', 'arret_maladie_am'
'absence_enfant', 'conge_am', 'arret_maladie_am', 'soin_enfant'
);
END IF;
IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'statut_evenement_agenda_type') THEN
@@ -108,6 +108,11 @@ INSERT INTO card_types (
'arret_maladie_am', true, 'Arrêt maladie AM',
ARRAY['assistante_maternelle'], ARRAY['parent'],
'couple_parents', 'ack', 14, 'pink'
),
(
'soin_enfant', true, 'Soins enfant',
ARRAY['assistante_maternelle'], ARRAY['parent'],
'couple_parents', 'ack', 7, 'pink'
)
ON CONFLICT (code) DO UPDATE SET
titre = EXCLUDED.titre,
@@ -0,0 +1,2 @@
-- Migration incrémentale : ajout du type soin_enfant à l'agenda
ALTER TYPE type_evenement_agenda_type ADD VALUE IF NOT EXISTS 'soin_enfant';