mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-24 18:56:32 -05:00
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:
parent
3ccfc9bbb7
commit
5cc20707dc
1 changed files with 13 additions and 0 deletions
|
@ -115,6 +115,17 @@ entity "Group" {
|
|||
*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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue