-- 2026-05-04: KI-Avatare für die 3 Test-Schüler in Klasse JAKOB1
-- Idempotent — kann mehrfach ausgeführt werden.
SET @class_id := (SELECT id FROM classes WHERE join_code='JAKOB1' LIMIT 1);

UPDATE students SET emoji_avatar='avatar:fuchs-explorer' WHERE class_id=@class_id AND username='Alexom';
UPDATE students SET emoji_avatar='avatar:adler-pilot'    WHERE class_id=@class_id AND username='Berturam';
UPDATE students SET emoji_avatar='avatar:eule-prof'      WHERE class_id=@class_id AND username='Sussama';

SELECT s.id, s.username, s.emoji_avatar
  FROM students s WHERE s.class_id=@class_id ORDER BY s.id;
