File tree 1 file changed +51
-3
lines changed
1 file changed +51
-3
lines changed Original file line number Diff line number Diff line change @@ -66,12 +66,60 @@ Antes de começar, tenha o seguinte instalado:
66
66
Esses endpoints são protegidos por ** Spring Security** 🔐 e requerem um token JWT válido para acessar.
67
67
68
68
## Diagramas 📊
69
+ Aqui está o ** Diagrama de Classes** :
70
+
71
+ ``` mermaid
72
+ classDiagram
73
+ class User {
74
+ +id : String
75
+ +username : String
76
+ +password : String
77
+ +role : UserRole
78
+ +notes : List~Note~
79
+ }
80
+
81
+ class Note {
82
+ +id : Long
83
+ +content : String
84
+ +user : User
85
+ }
86
+
87
+ class UserRole {
88
+ <<enum>>
89
+ ADMIN
90
+ USER
91
+ }
92
+
93
+ User "1" --> "*" Note : notes
94
+ Note "*" --> "1" User : user
95
+ User --> UserRole : role
96
+ ```
69
97
70
98
Aqui está o diagrama do ** SchemaDB** para ilustrar a estrutura do banco de dados:
71
99
72
- ![ SchemaDB] ( assets/diagramDB.png )
73
-
74
-
100
+ ``` mermaid
101
+ erDiagram
102
+ USERS {
103
+ STRING id PK
104
+ STRING username
105
+ STRING password
106
+ STRING role
107
+ }
108
+
109
+ NOTES {
110
+ INT id PK
111
+ STRING content
112
+ STRING user_id FK
113
+ }
114
+
115
+ USERROLE {
116
+ STRING role PK
117
+ }
118
+
119
+ USERS ||--o{ NOTES : has
120
+ NOTES }o--|| USERS : belongs_to
121
+ USERS }o--|| USERROLE : role_is
122
+ ```
75
123
## Contribuindo 🤝
76
124
77
125
1 . Faça um fork deste repositório 🍴.
You can’t perform that action at this time.
0 commit comments