[SPRINT 1] Création table users #27
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.