ALTER TABLE ref_vaccines ADD COLUMN family TEXT;

-- Mapping simple (à ajuster si tu as d'autres libellés)
UPDATE ref_vaccines SET family='TC' WHERE upper(name) LIKE '%TC%' OR upper(name) LIKE '%TCL%' OR upper(name) LIKE '%CORYZA%' OR upper(name) LIKE '%TYPHUS%';
UPDATE ref_vaccines SET family='L'  WHERE upper(name) LIKE '%LEUCO%' OR upper(name) LIKE '%FELV%' OR upper(name) = 'L';
