DB Schema: Make layout pretty

Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
This commit is contained in:
David Mehren 2020-10-24 20:55:31 +02:00
parent 520046f8d4
commit 80e4d029f7
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -1,9 +1,6 @@
@startuml @startuml
' hide the spot
hide circle hide circle
skinparam nodesep 60
' avoid problems with angled crows feet
skinparam linetype ortho
entity "Note" { entity "Note" {
*id : uuid <<generated>> *id : uuid <<generated>>
@ -132,21 +129,26 @@ entity "MediaUpload" {
*createdAt : date *createdAt : date
} }
Note "1" - "1..*" Revision User "1" -- "0..*" Note: owner
User "1" -u- "1..*" Identity
User "1" - "1..*" authToken
User "1" -l- "1..*" Session
User "1" - "0..*" MediaUpload
User "0..*" -- "0..*" Note
User "1" - "0..*" Authorship
(User, Note) . AuthorColors
Revision "0..*" - "0..*" Authorship Revision "0..*" - "0..*" Authorship
(Revision, Authorship) .. RevisionAuthorship (Revision, Authorship) .. RevisionAuthorship
Authorship "0..*" -- "1" User
Note "0..*" -- "1" User : owner
Note "1" -- "0..*" NoteUserPermission
NoteUserPermission "1" -- "1" User
Note "1" -- "0..*" NoteGroupPermission
NoteGroupPermission "0..*" -- "1" Group
Identity "1..*" -- "1" User
authToken "1..*" -- "1" User
Session "1..*" -- "1" User
Note "0..*" -- "0..*" User : color
(Note, User) .. AuthorColors
Note "0..*" -- "0..*" Tag : tags
MediaUpload "0..*" -- "1" Note MediaUpload "0..*" -- "1" Note
MediaUpload "0..*" -- "1" User Note "1" - "1..*" Revision
Note "0..*" -l- "0..*" Tag
Note "0..*" -- "0..*" Group
User "0..*" -- "0..*" Note
(User, Note) . NoteUserPermission
(Note, Group) . NoteGroupPermission
@enduml @enduml