@startuml
skinparam BackgroundColor transparent
top to bottom direction
hide circle
hide methods

entity CLIENTS {
 idcl <<PK>> 
---
 nom  
 pren  
 adr  
 tel  
}
entity LIVRES {
 refl <<PK>> 
---
 titre  
 auteur  
 genre  
}
entity ACHATS {
 idcl # <<PK>> 
 refl # <<PK>> 
 dateachat <<PK>> 
---
}
entity AVIS {
 idcl # <<PK>> 
 refl # <<PK>> 
---
 note  
 commentaire  
}
CLIENTS||--o{ACHATS
LIVRES||--o{ACHATS
CLIENTS||--o{AVIS
LIVRES||--o{AVIS
@enduml