Add note metadata to db schema

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-03 11:02:03 +02:00
parent e30b16d91d
commit 566e95f95d
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -12,6 +12,8 @@ entity "Note" {
*alias : text
*viewcount : number
*ownerId : uuid <<FK User>>
description: text
title: text
}
entity "User" {
@ -49,7 +51,7 @@ entity "Identity" {
passwordHash : text
}
entity "Session" as seesion {
entity "Session" {
*id : text
--
*expiredAt : number
@ -115,6 +117,11 @@ entity "Group" {
*canEdit : boolean
}
entity "Tag" {
*id: number <<generated>>
*name: text
}
entity "MediaUpload" {
*id : text <<unique>>
--
@ -136,9 +143,10 @@ Note "1" -- "0..*" NoteGroupPermission
NoteGroupPermission "0..*" -- "1" Group
Identity "1..*" -- "1" User
authToken "1..*" -- "1" User
seesion "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" User
@enduml