diff --git a/dossier-de-projet-cda.md b/dossier-de-projet-cda.md index 6559d28..b6eeab1 100644 --- a/dossier-de-projet-cda.md +++ b/dossier-de-projet-cda.md @@ -761,60 +761,7 @@ Je tiens à remercier l'équipe pédagogique pour son accompagnement tout au lon ### Annexe 1 - Schéma de classe POO du backend -Le diagramme suivant représente les entités principales du domaine et leurs relations au sein du backend NestJS. -```mermaid -classDiagram - class User { - +UUID uuid - +String username - +String email (Encrypted) - +String emailHash - +String passwordHash - +String avatarUrl - +Enum status - +Boolean isTwoFactorEnabled - +DateTime createdAt - +softDelete() - } - - class Content { - +UUID id - +UUID userId - +Enum type - +String title - +String slug - +String storageKey - +Int views - +Int usageCount - +DateTime createdAt - +incrementViews() - } - - class Category { - +UUID id - +String name - +String slug - } - - class Tag { - +UUID id - +String name - } - - class Report { - +UUID id - +UUID contentId - +String reason - +Enum status - +DateTime createdAt - } - - User "1" -- "0..*" Content : owns - Content "0..*" -- "1" Category : categorized_in - Content "0..*" -- "0..*" Tag : tagged_with - Content "1" -- "0..*" Report : has_reports -``` ### Annexe 2 - Sources et ressources - [Documentation NestJS](https://docs.nestjs.com/)