Commit 4b853f3a authored by Koen Martens's avatar Koen Martens
Browse files

Backend: update data model

parent 76fc13ca
......@@ -5,7 +5,7 @@ class Contact {
+birth_date: Date
}
class Company {
class Organisation {
+name: str
+description: str
}
......@@ -17,66 +17,59 @@ class Role {
}
Contact "1" --> "*" Role
Company "1" --> "*" Role
Organisation "1" --> "*" Role
class PlatformProfile {
+platform: str
+url: URL
}
class PlatformProfileLink {
+from: Date
+to: Date
}
Contact "1" --> "*" PlatformProfileLink
Company "1" --> "*" PlatformProfileLink
PlatformProfile "1" --> "*" PlatformProfileLink
Contact "1" --> "*" PlatformProfile : platform_profiles
Organisation "1" --> "*" PlatformProfile : platform_profiles
class PostalAddress {
class MailAddress {
+type: str
+name: str
+street1: str
+street2: str
+zipcode: str
+city: str
+country: str
}
class PostalAddressLink {
+type: str
+from: Date
+to: Date
}
Contact "1" --> "*" PostalAddressLink
Company "1" --> "*" PostalAddressLink
PostalAddress "1" --> "*" PostalAddressLink
Contact "1" --> "*" MailAddress : mail_addresses
Organisation "1" --> "*" MailAddress : mail_addresses
class PhoneNumber {
+phone_number: str
}
class PhoneNumberLink {
+type: str
+from: Date
+to: Date
}
Contact "1" --> "*" PhoneNumberLink
Company "1" --> "*" PhoneNumberLink
PhoneNumber "1" --> "*" PhoneNumberLink
Contact "1" --> "*" PhoneNumber : phone_numbers
Organisation "1" --> "*" PhoneNumber : phone_numbers
class EmailAddress {
+email_address: str
}
class EmailAddressLink {
+address: str
+type: str
+from: Date
+to: Date
}
Contact "1" --> "*" EmailAddressLink
Company "1" --> "*" EmailAddressLink
PhoneNumber "1" --> "*" EmailAddressLink
Contact "1" --> "*" EmailAddress : email_addresses
Organisation "1" --> "*" EmailAddress : email_addresses
class ContactLog {
+status: str
+date: Date
}
Contact "1" --> "*" ContactLog : contacts
Organisation "1" --> "*" ContactLog : contacts
@enduml
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment