mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
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:
parent
e30b16d91d
commit
566e95f95d
1 changed files with 11 additions and 3 deletions
|
@ -12,6 +12,8 @@ entity "Note" {
|
||||||
*alias : text
|
*alias : text
|
||||||
*viewcount : number
|
*viewcount : number
|
||||||
*ownerId : uuid <<FK User>>
|
*ownerId : uuid <<FK User>>
|
||||||
|
description: text
|
||||||
|
title: text
|
||||||
}
|
}
|
||||||
|
|
||||||
entity "User" {
|
entity "User" {
|
||||||
|
@ -49,7 +51,7 @@ entity "Identity" {
|
||||||
passwordHash : text
|
passwordHash : text
|
||||||
}
|
}
|
||||||
|
|
||||||
entity "Session" as seesion {
|
entity "Session" {
|
||||||
*id : text
|
*id : text
|
||||||
--
|
--
|
||||||
*expiredAt : number
|
*expiredAt : number
|
||||||
|
@ -108,13 +110,18 @@ entity "Group" {
|
||||||
*special : boolean
|
*special : boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
entity "NoteGroupPermission" {
|
entity "NoteGroupPermission" {
|
||||||
*groupId : number <<FK Group>>
|
*groupId : number <<FK Group>>
|
||||||
*noteId : uuid <<FK Note>>
|
*noteId : uuid <<FK Note>>
|
||||||
--
|
--
|
||||||
*canEdit : boolean
|
*canEdit : boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
entity "Tag" {
|
||||||
|
*id: number <<generated>>
|
||||||
|
*name: text
|
||||||
|
}
|
||||||
|
|
||||||
entity "MediaUpload" {
|
entity "MediaUpload" {
|
||||||
*id : text <<unique>>
|
*id : text <<unique>>
|
||||||
--
|
--
|
||||||
|
@ -136,9 +143,10 @@ Note "1" -- "0..*" NoteGroupPermission
|
||||||
NoteGroupPermission "0..*" -- "1" Group
|
NoteGroupPermission "0..*" -- "1" Group
|
||||||
Identity "1..*" -- "1" User
|
Identity "1..*" -- "1" User
|
||||||
authToken "1..*" -- "1" User
|
authToken "1..*" -- "1" User
|
||||||
seesion "1..*" -- "1" User
|
Session "1..*" -- "1" User
|
||||||
Note "0..*" -- "0..*" User : color
|
Note "0..*" -- "0..*" User : color
|
||||||
(Note, User) .. AuthorColors
|
(Note, User) .. AuthorColors
|
||||||
|
Note "0..*" -- "0..*" Tag : tags
|
||||||
MediaUpload "0..*" -- "1" Note
|
MediaUpload "0..*" -- "1" Note
|
||||||
MediaUpload "0..*" -- "1" User
|
MediaUpload "0..*" -- "1" User
|
||||||
@enduml
|
@enduml
|
||||||
|
|
Loading…
Reference in a new issue