db-schema: updates plantuml

adds identifier and createdAt to AuthToken
renames authToken in User to authTokens

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-01-17 14:49:28 +01:00
parent 5e6e5d0e5f
commit 0bd7a8f4bc

View file

@ -29,6 +29,8 @@ entity "auth_token"{
-- --
*userId : uuid *userId : uuid
*accessToken : text *accessToken : text
*identifier: text
*createdAt: date
} }
entity "identity" { entity "identity" {
@ -131,7 +133,7 @@ entity "media_upload" {
user "1" -- "0..*" note: owner user "1" -- "0..*" note: owner
user "1" -u- "1..*" identity user "1" -u- "1..*" identity
user "1" - "1..*" auth_token user "1" - "1..*" auth_token: authTokens
user "1" -l- "1..*" session user "1" -l- "1..*" session
user "1" - "0..*" media_upload user "1" - "0..*" media_upload
user "0..*" -- "0..*" note user "0..*" -- "0..*" note