db-migration #10

Merged
hsh-michaelhoennig merged 74 commits from db-migration into master 2024-01-23 15:11:24 +01:00
Showing only changes of commit 837e7fee97 - Show all commits

View File

@ -4,31 +4,69 @@
classDiagram classDiagram
direction TD direction TD
namespace Partner { namespace Hostsharing {
class person-HostsharingEG
}
namespace Partner {
class partner-MeierGmbH class partner-MeierGmbH
class role-MeierGmbH
class personDetails-MeierGmbH class personDetails-MeierGmbH
class contactData-MeierGmbH class contactData-MeierGmbH
class person-MeierGmbH class person-MeierGmbH
}
namespace Representatives {
class person-FrankMeier class person-FrankMeier
class contactData-FrankMeier class contactData-FrankMeier
class role-MeierGmbH-FrankMeier class role-MeierGmbH-FrankMeier
}
class person-SabineMeier namespace Debitors {
class contactData-SabineMeier
class role-MeierGmbH-SabineMeier
class debitor-MeierGmbH class debitor-MeierGmbH
class contactData-MeierGmbH-Buha class contactData-MeierGmbH-Buha
class role-MeierGmbH-Buha class role-MeierGmbH-Buha
} }
class partner-MeierGmbH { namespace Operations {
+partnerNumber: 12345 class person-SabineMeier
+person class contactData-SabineMeier
class role-MeierGmbH-SabineMeier
} }
partner-MeierGmbH o-- person-MeierGmbH
namespace Enums {
class RoleType {
<<enumeration>>
UNKNOWN
REPRESENTATIVE
ACCOUNTING
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
+Role partnerRole
}
partner-MeierGmbH o-- role-MeierGmbH
class person-MeierGmbH { class person-MeierGmbH {
+personType: LEGAL +personType: LEGAL
@ -36,17 +74,15 @@ classDiagram
+familyName +familyName
+givenName +givenName
} }
person-MeierGmbH *-- personDetails-MeierGmbH : optiona person-MeierGmbH *-- personDetails-MeierGmbH
class personDetails-MeierGmbH { class personDetails-MeierGmbH {
+personContact
+registrationOffice: AG Hamburg +registrationOffice: AG Hamburg
+registrationNumber: ABC123434 +registrationNumber: ABC123434
+birthName +birthName
+birthPlace +birthPlace
+dateOfDeath +dateOfDeath
} }
personDetails-MeierGmbH o-- contactData-MeierGmbH
class contactData-MeierGmbH { class contactData-MeierGmbH {
+postalAddress: Hauptstraße 5, 22345 Hamburg +postalAddress: Hauptstraße 5, 22345 Hamburg
@ -54,6 +90,18 @@ classDiagram
+emailAddresses: office@meier-gmbh.de +emailAddresses: office@meier-gmbh.de
} }
class role-MeierGmbH {
+RoleType RoleType PARTNER
+Person anchor
+Person holder
+Contact roleContact
}
role-MeierGmbH o-- person-HostsharingEG : anchor
role-MeierGmbH o-- person-MeierGmbH : holder
role-MeierGmbH o-- contactData-MeierGmbH
%% --- Debitors ---
class debitor-MeierGmbH { class debitor-MeierGmbH {
+Partner partner +Partner partner
+Numeric[2] debitorNumberSuffix: 00 +Numeric[2] debitorNumberSuffix: 00
@ -85,6 +133,8 @@ classDiagram
role-MeierGmbH-Buha o-- person-MeierGmbH : holder role-MeierGmbH-Buha o-- person-MeierGmbH : holder
role-MeierGmbH-Buha o-- contactData-MeierGmbH-Buha role-MeierGmbH-Buha o-- contactData-MeierGmbH-Buha
%% --- Representatives ---
class person-FrankMeier { class person-FrankMeier {
+ personType: NATURAL + personType: NATURAL
+ tradeName + tradeName
@ -108,6 +158,8 @@ classDiagram
role-MeierGmbH-FrankMeier o-- person-FrankMeier : holder role-MeierGmbH-FrankMeier o-- person-FrankMeier : holder
role-MeierGmbH-FrankMeier o-- contactData-FrankMeier role-MeierGmbH-FrankMeier o-- contactData-FrankMeier
%% --- Operations ---
class person-SabineMeier { class person-SabineMeier {
+personType: NATURAL +personType: NATURAL
+tradeName +tradeName
@ -131,25 +183,4 @@ classDiagram
role-MeierGmbH-SabineMeier o-- person-SabineMeier : holder role-MeierGmbH-SabineMeier o-- person-SabineMeier : holder
role-MeierGmbH-SabineMeier o-- contactData-SabineMeier role-MeierGmbH-SabineMeier o-- contactData-SabineMeier
namespace Enums {
class RoleType {
<<enumeration>>
UNKNOWN
REPRESENTATIVE
ACCOUNTING
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]
}
}
``` ```