54 lines
1.1 KiB
Markdown
54 lines
1.1 KiB
Markdown
# 🏢 CONCEPT: ENTREPRISE
|
|
|
|
## 📌 Vue d'ensemble
|
|
|
|
Le concept **ENTREPRISE** gère les profils d'entreprises BTP et leurs avis/évaluations.
|
|
|
|
**Importance**: ⭐⭐ (Concept secondaire)
|
|
|
|
---
|
|
|
|
## 🗂️ Fichiers concernés
|
|
|
|
### **Entités JPA**
|
|
| Fichier | Description |
|
|
|---------|-------------|
|
|
| `EntrepriseProfile.java` | Profil entreprise |
|
|
| `AvisEntreprise.java` | Avis sur entreprise |
|
|
| `StatutAvis.java` | Enum (EN_ATTENTE, PUBLIE, REJETE, SIGNALE, ARCHIVE) |
|
|
|
|
---
|
|
|
|
## 📊 Modèle de données
|
|
|
|
```java
|
|
@Entity
|
|
@Table(name = "entreprises_profiles")
|
|
public class EntrepriseProfile extends PanacheEntityBase {
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.UUID)
|
|
private UUID id;
|
|
|
|
@Column(name = "nom", nullable = false)
|
|
private String nom;
|
|
|
|
@Column(name = "siret")
|
|
private String siret;
|
|
|
|
@Column(name = "description", length = 2000)
|
|
private String description;
|
|
|
|
@Column(name = "note_moyenne", precision = 3, scale = 2)
|
|
private BigDecimal noteMoyenne;
|
|
|
|
@OneToMany(mappedBy = "entreprise")
|
|
private List<AvisEntreprise> avis;
|
|
}
|
|
```
|
|
|
|
---
|
|
|
|
**Dernière mise à jour**: 2025-09-30
|
|
**Version**: 1.0
|
|
|