ki-doku/doc/source/architecture/erdmodel.plantuml.txt

99 lines
1.3 KiB
Plaintext
Raw Normal View History

@startuml
' hide the spot
hide circle
' avoid problems with angled crows feet
skinparam linetype ortho
entity "user" as user {
*user_id : number <<generated>>
--
*nickname : text
*pronouns : text
*address_1_name: text
*address_2_additional: text
*address_4_street: text
*adress_house_number: text
*adress_city_code: text
*adress_country: text
*Ehrenaemter: text
*gravatar_email : text
*Freitext: text
}
entity user_skill {
user_id: id
skill_id: id
--
level: number
}
entity user_language {
user_id: id
language_id: id
--
level: number
}
entity skill {
skill_id
--
*name: text
}
entity user_experience {
user_id
--
description
start: date
end: date
}
entity user_search_topic {
user_id
topic_id
}
entity user_contact {
user_id
contact_type_id
--
content_: text
}
entity topic {
topic_id
--
*name: text
}
entity language {
id
--
name: text
}
entity experience {
id
--
name: text
}
entity contact_types {
id
--
name
}
user ||--o{ user_skill : user_has_skills
user_skill ||-o{ skill
user ||--o{ user_experience : user_has_experience
user_experience ||-o{ experience : user_experience_is_tagged_with
user ||-o{ user_language : user_speaks_language
user_language||-{ language
user ||-o{ user_search_topic
user_search_topic ||-o{ topic
@enduml