diff --git a/Datastructure.md b/Datastructure.md index 0aff869..77c216c 100644 --- a/Datastructure.md +++ b/Datastructure.md @@ -1,16 +1,56 @@ ```mermaid +%%{ init: { 'flowchart': { 'curve': 'linear' } } }%% flowchart TD -p["Projekt"] -p-->p_id(id) -p-->p_name(name) -p-->p_admin(administrator) -p-->p_customer(customer) -p-->p_goal(goal) -p-->p_start(start) -p-->p_planned_end(planned end) -p-->p_real_end(real end) -l["Link"] +subgraph em["Epmployee Microservice"] + e["Employee"] + e-->e_id(id) + e-->e_first_name(first name) + e-->e_last_name(last name) + e-->e_phone_number(phone number) + e-->e_city(city) + e-->e_zip_code(zip code) + e-->e_street(street) + e-->e_skills(skill set) + q["Qualification"] + q-->q_id(id) + q-->q_name(name) +end + +subgraph pm["Project Microservice"] + p["Projekt"] + p-->p_id(id) + p-->p_name(name) + p-->p_admin_id(administrator id) + p-->p_customer_id(customer) + p-->p_goal(goal) + p-->p_start(start) + p-->p_planned_end(planned end) + p-->p_real_end(real end) + + a["Allocation"] + a-->a_employee_id(employee id) + a-->a_project_id(project id) + a-->a_role(role) +end + +subgraph cm["Customer Microservice"] + c["Customer"] + c-->c_id(id) +end + + + +%% Cross Data Struct Links (Relations) + +p_admin_id o-----o e_id +p_customer_id o-----o c_id + +a_employee_id o-----o e_id +a_project_id o-----o p_id +a_role o-----o q_id + +linkStyle 22,23,24,25,26 stroke:green,stroke-width:2px; ``` \ No newline at end of file