feat(#102): BDD nir_chiffre NOT NULL + migration pour bases existantes

Made-with: Cursor
This commit is contained in:
2026-02-26 12:56:15 +01:00
parent 38c003ef6f
commit a9c6b9e15b
2 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ CREATE INDEX idx_utilisateurs_token_creation_mdp
CREATE TABLE assistantes_maternelles (
id_utilisateur UUID PRIMARY KEY REFERENCES utilisateurs(id) ON DELETE CASCADE,
numero_agrement VARCHAR(50),
nir_chiffre CHAR(15),
nir_chiffre CHAR(15) NOT NULL,
nb_max_enfants INT,
biographie TEXT,
disponible BOOLEAN DEFAULT true,