mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-09 13:51:57 -04:00
feat: add list of aliases to note entity
One of the aliases can be primary for each note, but all can be used to get information from the apis. Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
86d060706f
commit
17c55195c3
6 changed files with 115 additions and 13 deletions
|
@ -6,13 +6,20 @@ entity "note" {
|
|||
*id : uuid <<generated>>
|
||||
--
|
||||
publicId: text
|
||||
alias : text
|
||||
*viewCount : number
|
||||
*ownerId : uuid <<FK user>>
|
||||
description: text
|
||||
title: text
|
||||
}
|
||||
|
||||
entity "alias" {
|
||||
*id: uuid <<generated>>
|
||||
---
|
||||
name: text
|
||||
' If the alias is primary. Can be NULL, which means it's not primary
|
||||
primary: boolean
|
||||
}
|
||||
|
||||
entity "user" {
|
||||
*id : uuid <<generated>>
|
||||
--
|
||||
|
@ -169,6 +176,7 @@ media_upload "0..*" -- "1" note
|
|||
note "1" -d- "1..*" revision
|
||||
note "1" - "0..*" history_entry
|
||||
note "0..*" -l- "0..*" tag
|
||||
note "1" - "0..*" alias
|
||||
note "0..*" -- "0..*" group
|
||||
user "1..*" -- "0..*" group
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue