DB Schema: Add MediaUpload entity

MediaUpload stores the uploading user, the note the media was uploaded to and backend data.

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2020-10-13 10:19:12 +02:00
parent 3ccfc9bbb7
commit 5cc20707dc
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -115,6 +115,17 @@ entity "Group" {
*canEdit : boolean *canEdit : boolean
} }
entity "MediaUpload" {
*id : text <<unique>>
--
*noteId : uuid <<FK Note>>
*userId : uuid <<FK User>>
*extension : text
*backendType: text
backendData: text
*createdAt : date
}
Note "1" - "1..*" Revision Note "1" - "1..*" Revision
Revision "0..*" - "0..*" Authorship Revision "0..*" - "0..*" Authorship
(Revision, Authorship) .. RevisionAuthorship (Revision, Authorship) .. RevisionAuthorship
@ -129,4 +140,6 @@ authToken "1..*" -- "1" User
seesion "1..*" -- "1" User seesion "1..*" -- "1" User
Note "0..*" -- "0..*" User : color Note "0..*" -- "0..*" User : color
(Note, User) .. AuthorColors (Note, User) .. AuthorColors
MediaUpload "0..*" -- "1" Note
MediaUpload "0..*" -- "1" User
@enduml @enduml