2021-05-28 22:20:20 +02:00
|
|
|
@startuml
|
|
|
|
|
|
|
|
' hide the spot
|
|
|
|
hide circle
|
|
|
|
|
|
|
|
' avoid problems with angled crows feet
|
|
|
|
skinparam linetype ortho
|
|
|
|
|
|
|
|
entity "user" as user {
|
2021-06-11 00:26:30 +02:00
|
|
|
*id : number <<generated>>
|
2021-05-28 22:20:20 +02:00
|
|
|
--
|
2021-07-01 09:16:14 +02:00
|
|
|
*auth_id : text(50)
|
|
|
|
' *created: datetime
|
|
|
|
' *updated: datetime
|
|
|
|
}
|
|
|
|
|
|
|
|
entity tag {
|
|
|
|
*id : number <<generated>>
|
|
|
|
*tag_type_id
|
|
|
|
--
|
|
|
|
*name: text
|
2021-06-20 13:48:08 +02:00
|
|
|
}
|
|
|
|
|
2021-07-01 09:16:14 +02:00
|
|
|
entity tag_type {
|
2021-06-20 13:48:08 +02:00
|
|
|
*id : number <<generated>>
|
2021-07-01 09:16:14 +02:00
|
|
|
--
|
|
|
|
*name: text
|
|
|
|
}
|
|
|
|
|
|
|
|
tag_type ||--o{ tag
|
|
|
|
|
|
|
|
entity profile {
|
|
|
|
*id : number <<generated>>
|
|
|
|
*user_id
|
2021-06-20 13:48:08 +02:00
|
|
|
--
|
2021-07-01 09:16:14 +02:00
|
|
|
*nick_name : text(25)
|
2021-06-11 00:26:30 +02:00
|
|
|
pronouns : text(25)
|
|
|
|
fullname: text(100)
|
|
|
|
volunteerwork: text(4000)
|
|
|
|
freetext: text(4000)
|
2021-07-01 09:16:14 +02:00
|
|
|
visible: bool
|
2021-06-11 00:26:30 +02:00
|
|
|
*created: datetime
|
|
|
|
*updated: datetime
|
2021-05-28 22:20:20 +02:00
|
|
|
}
|
2021-07-01 09:16:14 +02:00
|
|
|
user ||-o{ profile : user_has_profile
|
|
|
|
|
|
|
|
entity token {
|
|
|
|
*id : number <<generated>>
|
|
|
|
*user_id
|
|
|
|
--
|
|
|
|
*token : text(36)
|
|
|
|
}
|
|
|
|
user ||-o{ token : user_has_token
|
2021-05-28 22:20:20 +02:00
|
|
|
|
2021-07-01 09:16:14 +02:00
|
|
|
entity profile_address {
|
2021-06-11 00:26:30 +02:00
|
|
|
*id : number <<generated>>
|
2021-07-01 09:16:14 +02:00
|
|
|
*profile_id
|
2021-06-11 00:26:30 +02:00
|
|
|
--
|
|
|
|
street: text(25)
|
|
|
|
house_number: text(10)
|
|
|
|
additional: text(25)
|
|
|
|
postcode: text(10)
|
|
|
|
city: text(25)
|
|
|
|
country: text(25)
|
|
|
|
}
|
2021-07-01 09:16:14 +02:00
|
|
|
profile ||-o{ profile_address : profile_has_address
|
2021-06-11 00:26:30 +02:00
|
|
|
|
2021-07-01 09:16:14 +02:00
|
|
|
entity profile_skill {
|
|
|
|
*profile_id: id
|
2021-06-11 00:26:30 +02:00
|
|
|
*skill_id: id
|
2021-05-28 22:20:20 +02:00
|
|
|
--
|
2021-07-01 09:16:14 +02:00
|
|
|
*level: number
|
2021-05-28 22:20:20 +02:00
|
|
|
}
|
|
|
|
|
2021-07-01 09:16:14 +02:00
|
|
|
entity profile_language {
|
|
|
|
*profile_id: id
|
2021-06-11 00:26:30 +02:00
|
|
|
*language_id: id
|
2021-05-28 22:20:20 +02:00
|
|
|
--
|
|
|
|
level: number
|
|
|
|
}
|
|
|
|
|
2021-07-01 09:16:14 +02:00
|
|
|
entity profile_experience {
|
2021-06-11 00:26:30 +02:00
|
|
|
*id : number <<generated>>
|
2021-07-01 09:16:14 +02:00
|
|
|
*profile_id
|
2021-05-28 22:20:20 +02:00
|
|
|
--
|
|
|
|
description
|
|
|
|
start: date
|
|
|
|
end: date
|
|
|
|
}
|
|
|
|
|
2021-07-01 09:16:14 +02:00
|
|
|
entity profile_experience_experience {
|
|
|
|
*profile_experience_id
|
2021-06-11 00:26:30 +02:00
|
|
|
*experience_id
|
|
|
|
}
|
|
|
|
|
2021-07-01 09:16:14 +02:00
|
|
|
profile ||--o{ profile_experience : user_has_experience
|
|
|
|
profile_experience ||--o{ profile_experience_experience : user_experience_is_tagged_with
|
2021-06-11 00:26:30 +02:00
|
|
|
|
2021-07-01 09:16:14 +02:00
|
|
|
profile_experience_experience }o--|| tag
|
2021-06-11 00:26:30 +02:00
|
|
|
|
2021-05-28 22:20:20 +02:00
|
|
|
entity user_search_topic {
|
2021-06-11 00:26:30 +02:00
|
|
|
*user_id
|
|
|
|
*topic_id
|
|
|
|
--
|
2021-05-28 22:20:20 +02:00
|
|
|
}
|
|
|
|
|
2021-07-01 09:16:14 +02:00
|
|
|
entity profile_contact {
|
2021-06-11 00:26:30 +02:00
|
|
|
*id : number <<generated>>
|
2021-07-01 09:16:14 +02:00
|
|
|
*profile_id
|
2021-06-11 00:26:30 +02:00
|
|
|
*contact_type_id
|
2021-05-28 22:20:20 +02:00
|
|
|
--
|
2021-06-11 00:26:30 +02:00
|
|
|
*content: text(200)
|
2021-05-28 22:20:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
entity language {
|
2021-06-11 00:26:30 +02:00
|
|
|
*id : number <<generated>>
|
2021-05-28 22:20:20 +02:00
|
|
|
--
|
2021-06-11 00:26:30 +02:00
|
|
|
*name: text(25)
|
2021-05-28 22:20:20 +02:00
|
|
|
}
|
|
|
|
|
2021-06-11 00:26:30 +02:00
|
|
|
entity contact_type {
|
|
|
|
*id : number <<generated>>
|
2021-05-28 22:20:20 +02:00
|
|
|
--
|
2021-06-11 00:26:30 +02:00
|
|
|
*name: text(25)
|
2021-05-28 22:20:20 +02:00
|
|
|
}
|
|
|
|
|
2021-07-01 09:16:14 +02:00
|
|
|
profile ||--o{ profile_skill : user_has_skills
|
|
|
|
profile_skill ||--o{ tag
|
2021-06-08 22:14:58 +02:00
|
|
|
|
2021-07-01 09:16:14 +02:00
|
|
|
profile ||--o{ profile_language : user_speaks_language
|
|
|
|
profile_language||--{ language
|
2021-06-08 22:14:58 +02:00
|
|
|
|
2021-06-11 00:26:30 +02:00
|
|
|
user ||--o{ user_search_topic
|
2021-07-01 09:16:14 +02:00
|
|
|
user_search_topic ||--o{ tag
|
2021-05-28 22:20:20 +02:00
|
|
|
|
2021-07-01 09:16:14 +02:00
|
|
|
profile ||-o{ profile_contact
|
|
|
|
profile_contact ||-o{ contact_type
|
2021-06-08 22:14:58 +02:00
|
|
|
|
2021-05-28 22:20:20 +02:00
|
|
|
@enduml
|