2024-01-23 15:11:23 +01:00
|
|
|
# Beispiel: juristische Person (GmbH)
|
|
|
|
|
|
|
|
```mermaid
|
|
|
|
classDiagram
|
|
|
|
direction TD
|
|
|
|
|
|
|
|
namespace Hostsharing {
|
|
|
|
class person-HostsharingEG
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Partner {
|
|
|
|
class partner-MeierGmbH
|
2024-03-13 15:01:24 +01:00
|
|
|
class rel-MeierGmbH
|
2024-01-23 15:11:23 +01:00
|
|
|
class personDetails-MeierGmbH
|
|
|
|
class contactData-MeierGmbH
|
|
|
|
class person-MeierGmbH
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Representatives {
|
|
|
|
class person-FrankMeier
|
|
|
|
class contactData-FrankMeier
|
2024-03-13 15:01:24 +01:00
|
|
|
class rel-MeierGmbH-FrankMeier
|
2024-01-23 15:11:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace Debitors {
|
|
|
|
class debitor-MeierGmbH
|
|
|
|
class contactData-MeierGmbH-Buha
|
2024-03-13 15:01:24 +01:00
|
|
|
class rel-MeierGmbH-Buha
|
2024-01-23 15:11:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace Operations {
|
|
|
|
class person-SabineMeier
|
|
|
|
class contactData-SabineMeier
|
2024-03-13 15:01:24 +01:00
|
|
|
class rel-MeierGmbH-SabineMeier
|
2024-01-23 15:11:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace Enums {
|
|
|
|
|
2024-03-13 15:01:24 +01:00
|
|
|
class RelationType {
|
2024-01-23 15:11:23 +01:00
|
|
|
<<enumeration>>
|
|
|
|
UNKNOWN
|
2024-03-13 15:01:24 +01:00
|
|
|
PARTNER
|
|
|
|
DEBITOR
|
2024-01-23 15:11:23 +01:00
|
|
|
REPRESENTATIVE
|
|
|
|
OPERATIONS
|
|
|
|
}
|
|
|
|
|
|
|
|
class PersonType {
|
|
|
|
<<enumeration>>
|
|
|
|
UNKNOWN: nur für Import
|
|
|
|
NATURAL_PERSON: natürliche Person
|
|
|
|
LEGAL_PERSON: z.B. GmbH, e.K., eG, e.V.
|
|
|
|
INCORORATED_FIRM: z.B. OHG, Partnerschaftsgesellschaft
|
|
|
|
UNINCORPORATED_FIRM: z.B. GbR, ARGE, Erbengemeinschaft
|
|
|
|
PUBLIC_INSTITUTION: KdöR, AöR [ohne Registergericht/Registernummer]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class person-HostsharingEG {
|
|
|
|
+personType: LEGAL
|
|
|
|
+tradeName: Hostsahring eG
|
|
|
|
+familyName
|
|
|
|
+givenName
|
|
|
|
}
|
|
|
|
|
|
|
|
class partner-MeierGmbH {
|
|
|
|
+Numeric partnerNumber: 12345
|
2024-03-13 15:01:24 +01:00
|
|
|
+Relation partnerRel
|
2024-01-23 15:11:23 +01:00
|
|
|
}
|
2024-03-13 15:01:24 +01:00
|
|
|
partner-MeierGmbH *-- rel-MeierGmbH
|
2024-01-23 15:11:23 +01:00
|
|
|
|
|
|
|
class person-MeierGmbH {
|
|
|
|
+personType: LEGAL
|
|
|
|
+tradeName: Meier GmbH
|
|
|
|
+familyName
|
|
|
|
+givenName
|
|
|
|
}
|
|
|
|
person-MeierGmbH *-- personDetails-MeierGmbH
|
|
|
|
|
|
|
|
class personDetails-MeierGmbH {
|
|
|
|
+registrationOffice: AG Hamburg
|
|
|
|
+registrationNumber: ABC123434
|
|
|
|
+birthName
|
|
|
|
+birthPlace
|
|
|
|
+dateOfDeath
|
|
|
|
}
|
|
|
|
|
|
|
|
class contactData-MeierGmbH {
|
|
|
|
+postalAddress: Hauptstraße 5, 22345 Hamburg
|
|
|
|
+phoneNumbers: +49 40 12345-00
|
|
|
|
+emailAddresses: office@meier-gmbh.de
|
|
|
|
}
|
|
|
|
|
2024-03-13 15:01:24 +01:00
|
|
|
class rel-MeierGmbH {
|
|
|
|
+RelationType type PARTNER
|
2024-01-23 15:11:23 +01:00
|
|
|
+Person anchor
|
|
|
|
+Person holder
|
2024-03-13 15:01:24 +01:00
|
|
|
+Contact contact
|
2024-01-23 15:11:23 +01:00
|
|
|
}
|
2024-03-13 15:01:24 +01:00
|
|
|
rel-MeierGmbH o-- person-HostsharingEG : anchor
|
|
|
|
rel-MeierGmbH o-- person-MeierGmbH : holder
|
|
|
|
rel-MeierGmbH o-- contactData-MeierGmbH
|
2024-01-23 15:11:23 +01:00
|
|
|
|
|
|
|
%% --- Debitors ---
|
|
|
|
|
|
|
|
class debitor-MeierGmbH {
|
2024-03-13 15:01:24 +01:00
|
|
|
+Partner partner
|
|
|
|
+Numeric[2] debitorNumberSuffix: 00
|
|
|
|
+Relation debitorRel
|
|
|
|
+boolean billable: true
|
|
|
|
+String vatId: ID123456789
|
|
|
|
+String vatCountryCode: DE
|
|
|
|
+boolean vatBusiness: true
|
|
|
|
+boolean vatReverseCharge: false
|
2024-01-23 15:11:23 +01:00
|
|
|
+BankAccount refundBankAccount
|
2024-03-13 15:01:24 +01:00
|
|
|
+String defaultPrefix: mei
|
2024-01-23 15:11:23 +01:00
|
|
|
}
|
|
|
|
debitor-MeierGmbH o-- partner-MeierGmbH
|
2024-03-13 15:01:24 +01:00
|
|
|
debitor-MeierGmbH *-- rel-MeierGmbH-Buha
|
2024-01-23 15:11:23 +01:00
|
|
|
|
|
|
|
class contactData-MeierGmbH-Buha {
|
|
|
|
+postalAddress: Hauptstraße 5, 22345 Hamburg
|
|
|
|
+phoneNumbers: +49 40 12345-05
|
|
|
|
+emailAddresses: buha@meier-gmbh.de
|
|
|
|
}
|
|
|
|
|
2024-03-13 15:01:24 +01:00
|
|
|
class rel-MeierGmbH-Buha {
|
|
|
|
+RelationType type DEBITOR
|
2024-01-23 15:11:23 +01:00
|
|
|
+Person anchor
|
|
|
|
+Person holder
|
2024-03-13 15:01:24 +01:00
|
|
|
+Contact contact
|
2024-01-23 15:11:23 +01:00
|
|
|
}
|
2024-03-13 15:01:24 +01:00
|
|
|
rel-MeierGmbH-Buha o-- person-MeierGmbH : anchor
|
|
|
|
rel-MeierGmbH-Buha o-- person-MeierGmbH : holder
|
|
|
|
rel-MeierGmbH-Buha o-- contactData-MeierGmbH-Buha
|
2024-01-23 15:11:23 +01:00
|
|
|
|
|
|
|
%% --- Representatives ---
|
|
|
|
|
|
|
|
class person-FrankMeier {
|
|
|
|
+ personType: NATURAL
|
|
|
|
+ tradeName
|
|
|
|
+ familyName: Meier
|
|
|
|
+ givenName: Frank
|
|
|
|
}
|
|
|
|
|
|
|
|
class contactData-FrankMeier {
|
|
|
|
+postalAddress
|
|
|
|
+phoneNumbers: +49 40 12345-22
|
|
|
|
+emailAddresses: frank.meier@meier-gmbh.de
|
|
|
|
}
|
|
|
|
|
2024-03-13 15:01:24 +01:00
|
|
|
class rel-MeierGmbH-FrankMeier {
|
|
|
|
+RelationType type REPRESENTATIVE
|
2024-01-23 15:11:23 +01:00
|
|
|
+Person anchor
|
|
|
|
+Person holder
|
2024-03-13 15:01:24 +01:00
|
|
|
+Contact contact
|
2024-01-23 15:11:23 +01:00
|
|
|
}
|
2024-03-13 15:01:24 +01:00
|
|
|
rel-MeierGmbH-FrankMeier o-- person-MeierGmbH : anchor
|
|
|
|
rel-MeierGmbH-FrankMeier o-- person-FrankMeier : holder
|
|
|
|
rel-MeierGmbH-FrankMeier o-- contactData-FrankMeier
|
2024-01-23 15:11:23 +01:00
|
|
|
|
|
|
|
%% --- Operations ---
|
|
|
|
|
|
|
|
class person-SabineMeier {
|
|
|
|
+personType: NATURAL
|
|
|
|
+tradeName
|
|
|
|
+familyName: Meier
|
|
|
|
+givenName: Sabine
|
|
|
|
}
|
|
|
|
|
|
|
|
class contactData-SabineMeier {
|
|
|
|
+postalAddress
|
|
|
|
+phoneNumbers: +49 40 12345-22
|
|
|
|
+emailAddresses: sabine.meier@meier-gmbh.de
|
|
|
|
}
|
|
|
|
|
2024-03-13 15:01:24 +01:00
|
|
|
class rel-MeierGmbH-SabineMeier {
|
|
|
|
+RelationType type OPERATIONAL
|
2024-01-23 15:11:23 +01:00
|
|
|
+Person anchor
|
|
|
|
+Person holder
|
2024-03-13 15:01:24 +01:00
|
|
|
+Contact contact
|
2024-01-23 15:11:23 +01:00
|
|
|
}
|
2024-03-13 15:01:24 +01:00
|
|
|
rel-MeierGmbH-SabineMeier o-- person-MeierGmbH : anchor
|
|
|
|
rel-MeierGmbH-SabineMeier o-- person-SabineMeier : holder
|
|
|
|
rel-MeierGmbH-SabineMeier o-- contactData-SabineMeier
|
2024-01-23 15:11:23 +01:00
|
|
|
|
|
|
|
```
|