From 0a0732049ab46615827cd01969ed9d8d20466a6b Mon Sep 17 00:00:00 2001 From: David Mehren Date: Tue, 13 Oct 2020 10:19:12 +0200 Subject: [PATCH] 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 --- docs/dev/db-schema.plantuml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/dev/db-schema.plantuml b/docs/dev/db-schema.plantuml index 56063af26..280a71ece 100644 --- a/docs/dev/db-schema.plantuml +++ b/docs/dev/db-schema.plantuml @@ -115,6 +115,17 @@ entity "Group" { *canEdit : boolean } +entity "MediaUpload" { + *id : text <> + -- + *noteId : uuid <> + *userId : uuid <> + *extension : text + *backendType: text + backendData: text + *createdAt : date +} + Note "1" - "1..*" Revision Revision "0..*" - "0..*" Authorship (Revision, Authorship) .. RevisionAuthorship @@ -129,4 +140,6 @@ authToken "1..*" -- "1" User seesion "1..*" -- "1" User Note "0..*" -- "0..*" User : color (Note, User) .. AuthorColors +MediaUpload "0..*" -- "1" Note +MediaUpload "0..*" -- "1" User @enduml