Créer table users (PK UUID, snake_case).
Colonnes clés : email (unique, not null), password_hash (not null), first_name, last_name, role (CHECK), status (CHECK default 'pending'), phone, address, photo_url, consent_photo, consent_photo_at, must_change_password (default false), created_at, updated_at.
Index/contraintes : unique(email).
Timestamps par défaut.
Migration SQL appliquée sans erreur.
Insert/Select de test OK.
DBML & Draw.io à jour.
No dependencies set.
The note is not visible to the blocked user.
Description
Créer table users (PK UUID, snake_case).
Colonnes clés : email (unique, not null), password_hash (not null), first_name, last_name, role (CHECK), status (CHECK default 'pending'), phone, address, photo_url, consent_photo, consent_photo_at, must_change_password (default false), created_at, updated_at.
Index/contraintes : unique(email).
Timestamps par défaut.
Critères d’acceptation
Migration SQL appliquée sans erreur.
Insert/Select de test OK.
DBML & Draw.io à jour.