Initial commit
This commit is contained in:
65
docs/concepts/19-DISPONIBILITE.md
Normal file
65
docs/concepts/19-DISPONIBILITE.md
Normal file
@@ -0,0 +1,65 @@
|
||||
# 📆 CONCEPT: DISPONIBILITE
|
||||
|
||||
## 📌 Vue d'ensemble
|
||||
|
||||
Le concept **DISPONIBILITE** gère les disponibilités des employés et du matériel pour la planification.
|
||||
|
||||
**Importance**: ⭐⭐ (Concept secondaire)
|
||||
|
||||
---
|
||||
|
||||
## 🗂️ Fichiers concernés
|
||||
|
||||
### **Entités JPA**
|
||||
| Fichier | Description |
|
||||
|---------|-------------|
|
||||
| `DisponibiliteEmploye.java` | Disponibilité employé |
|
||||
| `DisponibiliteMateriel.java` | Disponibilité matériel |
|
||||
|
||||
---
|
||||
|
||||
## 📊 Modèle de données
|
||||
|
||||
```java
|
||||
@Entity
|
||||
@Table(name = "disponibilites_employe")
|
||||
public class DisponibiliteEmploye extends PanacheEntityBase {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.UUID)
|
||||
private UUID id;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "employe_id", nullable = false)
|
||||
private Employe employe;
|
||||
|
||||
@Column(name = "date_debut", nullable = false)
|
||||
private LocalDate dateDebut;
|
||||
|
||||
@Column(name = "date_fin", nullable = false)
|
||||
private LocalDate dateFin;
|
||||
|
||||
@Column(name = "disponible", nullable = false)
|
||||
private Boolean disponible = true;
|
||||
|
||||
@Column(name = "motif", length = 500)
|
||||
private String motif;
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 🔌 API REST
|
||||
|
||||
### **Endpoints**
|
||||
|
||||
| Méthode | Endpoint | Description |
|
||||
|---------|----------|-------------|
|
||||
| GET | `/api/v1/disponibilites/employe/{id}` | Disponibilités employé |
|
||||
| POST | `/api/v1/disponibilites/employe` | Créer disponibilité |
|
||||
| GET | `/api/v1/disponibilites/materiel/{id}` | Disponibilités matériel |
|
||||
|
||||
---
|
||||
|
||||
**Dernière mise à jour**: 2025-09-30
|
||||
**Version**: 1.0
|
||||
|
||||
Reference in New Issue
Block a user