added entities for users experiences

splitted address into separate table
added types, length and Nullable information to attributes (based on flask data model)
This commit is contained in:
Gulliver 2021-06-11 00:26:30 +02:00
parent e8cdb715f2
commit 78347140ae

View File

@ -7,98 +7,117 @@ hide circle
skinparam linetype ortho
entity "user" as user {
*user_id : number <<generated>>
*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
*nickname : text(25)
pronouns : text(25)
fullname: text(100)
volunteerwork: text(4000)
freetext: text(4000)
*created: datetime
*updated: datetime
}
entity user_address {
*id : number <<generated>>
*userid
--
street: text(25)
house_number: text(10)
additional: text(25)
postcode: text(10)
city: text(25)
country: text(25)
}
user ||-o{ user_address : user_has_address
entity user_skill {
user_id: id
skill_id: id
*user_id: id
*skill_id: id
--
level: number
}
entity user_language {
user_id: id
language_id: id
*user_id: id
*language_id: id
--
level: number
}
entity skill {
skill_id
*id : number <<generated>>
--
*name: text
*name: text(25)
}
entity user_experience {
user_id
*id : number <<generated>>
*user_id
--
description
start: date
end: date
}
entity user_experience_experience {
*user_experience_id
*experience_id
}
user ||--o{ user_experience : user_has_experience
user_experience ||--o{ user_experience_experience : user_experience_is_tagged_with
entity experience {
*id : number <<generated>>
--
*name: text(25)
}
user_experience_experience }o--|| experience
entity user_search_topic {
user_id
topic_id
*user_id
*topic_id
--
}
entity user_contact {
user_id
contact_type_id
*id : number <<generated>>
*user_id
*contact_type_id
--
content_: text
*content: text(200)
}
entity topic {
topic_id
*id : number <<generated>>
--
*name: text
}
entity language {
id
*id : number <<generated>>
--
name: text
*name: text(25)
}
entity experience {
id
--
name: text
}
entity contact_types {
id
entity contact_type {
*id : number <<generated>>
--
name
*name: text(25)
}
user ||--o{ user_skill : user_has_skills
user_skill ||-o{ skill
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_language : user_speaks_language
user_language||-{ language
user ||-o{ user_search_topic
user_search_topic ||-o{ topic
user ||--o{ user_search_topic
user_search_topic ||--o{ topic
user ||-o{ user_contact
user_contact ||-o{ contact_types
user_contact ||-o{ contact_type
@enduml