Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Koen Martens
sonocrm
Commits
4b853f3a
Commit
4b853f3a
authored
Jan 09, 2022
by
Koen Martens
Browse files
Backend: update data model
parent
76fc13ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/datamodel.plantuml
View file @
4b853f3a
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment