billing data

This commit is contained in:
Koch
2023-05-17 14:48:22 +02:00
parent f872286440
commit 313e595a91
5 changed files with 26 additions and 6 deletions

View File

@@ -15,9 +15,10 @@ entity Customers : cuid, managed {
email : String;
firstName : String;
lastName : String;
creditCardNo : String;
// creditCardNo : String;
dateOfBirth : Date;
postalAddress : Association to CustomerPostalAddress on postalAddress.Customer = $self;
billingData : Composition of one CustomerBillingData on billingData.Customer = $self;
postalAddress : Composition of one CustomerPostalAddress on postalAddress.Customer = $self;
}
entity CustomerPostalAddress : cuid, managed {
@@ -27,3 +28,10 @@ entity CustomerPostalAddress : cuid, managed {
country : Country;
someOtherField : String(128);
};
entity CustomerBillingData : cuid, managed {
Customer : Association to one Customers;
creditCardNo : String;
};