Ajouter un identifiant fonctionnel au lignes de la table livreur.
Critères d'acceptation
Un identifiant fonctionnel doit être ajouté au modèle livreur. Cet identifiant sera composé des trois premières lettres du nom suivi des trois premières lettres du prénom (juxtaposé).
Si jamais un identifiant doit être créé alors que un identifiant identique est déjà contenu dans la base, un nombre sera ajouté à la fin du nouvel identifiant.
Ce nombre correspond à l'identifiant technique de l'utilisateur.
Mettre à jour les vues correspondantes pour afficher l'identifiant fonctionnel.
L'identifiant fonctionnel ne doit pas changer après la création de l'utilisateur, même s'il devait mettre à jour son nom.
comment gérer les caractères accentués ou spéciaux ? (apostrophes, tirets...)
retirer les accents / autres diacritiques reconnus.
supprimer tous les caractères non alphabétiques restants.
cela peut potentiellement donner lieux à des situations où il ne reste aucun caractère de valide ; dans ces cas-là, on utilise un identifiant par défaut.
comment gérer les situations où le nom ou prénom fait moins de 3 caractères ?
s'il y a moins de 3 caractères valides, utiliser tous les caractères disponibles, puis rajouter des caractères de remplissages (Sauf espaces !)
une exception : si le code brut est complètement vide, il est remplacé par un code par défaut, plutôt que d'avoir un code constitué uniquement du caractère de remplissage.
Ajouter un identifiant fonctionnel au lignes de la table livreur.
Critères d'acceptation