eadl:bloc3:dev_av:td2

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
eadl:bloc3:dev_av:td2 [2025/10/08 00:14] – [4.4 Optimisation des identifiants avec Tsid] jcheroneadl:bloc3:dev_av:td2 [2025/10/08 00:18] (Version actuelle) – [4.4 Optimisation des identifiants avec Tsid] jcheron
Ligne 266: Ligne 266:
 <html><div class="imageB"></html> <html><div class="imageB"></html>
 <uml> <uml>
-@startuml+@startuml Review Domain Model
  
-entity Review { +class Review { 
-  id : Long <<Tsid>> +  id : Long 
-  -+  - rating : Integer 
-  * product_id : UUID <<FK>> +  title : String 
-  * user_id : UUID <<FK>> +  comment : String 
-  * rating : Integer +  verified : Boolean 
-  title : String +  - helpfulCount : Integer 
-  comment : TEXT +  - createdAt : LocalDateTime 
-  verified : Boolean +  - updatedAt : LocalDateTime
-  * helpful_count : Integer +
-  * created_at : LocalDateTime +
-  * updated_at : LocalDateTime+
 } }
  
-entity Product { +class Product { 
-  id : UUID <<PK>>+  id : UUID 
 +  - name : String 
 +  - price : BigDecimal 
 +  - stock : Integer
 } }
  
-entity User { +class User { 
-  id : UUID <<PK>>+  id : UUID 
 +  - username : String 
 +  - email : String
 } }
  
-Review }o--|| Product +Product "1" -- "0..*" Review : product 
-Review }o--|| User+User "1" -- "0..*" Review : author 
 + 
 +note right of Review 
 +  Contraintes métier : 
 +  • rating ∈ [1..5] 
 +  • 1 review max par (user, product) 
 +  • verified = true si achat confirmé 
 +  • helpfulCount >= 0 
 +   
 +  Tsid Generator pour l'id 
 +  (performance + tri chronologique) 
 +end note
  
 @enduml @enduml
 +
 +
  
 </uml> </uml>
  • eadl/bloc3/dev_av/td2.1759875249.txt.gz
  • Dernière modification : il y a 11 heures
  • de jcheron