feat(db): add Anomalie, Notification and Historique tracking models

This commit is contained in:
SaidSoighiri94
2026-06-15 09:59:22 +02:00
parent 6908a2bf6e
commit 0fc9f9ed1c
3 changed files with 204 additions and 32 deletions
+9 -9
View File
@@ -154,14 +154,14 @@ erDiagram
int emprunt_id FK
int materiel_id FK
int utilisateur_id FK
int traitee_par_id FK
int traitee_par_id FK "nullable"
string type
string description
string statut
boolean detectee_automatiquement
string observation
string observation "nullable"
datetime date_detection
datetime date_resolution
datetime date_resolution "nullable"
datetime created_at
datetime updated_at
}
@@ -169,11 +169,11 @@ erDiagram
HISTORIQUE {
int id PK
int utilisateur_id FK
int emprunt_id FK
int materiel_id FK
int campus_id FK
int salle_pret_id FK
int poste_emprunt_id FK
int emprunt_id FK "nullable"
int materiel_id FK "nullable"
int campus_id FK "nullable"
int salle_pret_id FK "nullable"
int poste_emprunt_id FK "nullable"
string action
string description
datetime date_action
@@ -183,7 +183,7 @@ erDiagram
NOTIFICATION {
int id PK
int utilisateur_id FK
int anomalie_id FK
int anomalie_id FK "nullable"
string titre
string message
string type