Skip to content

User defined data types

Modeling your business domain

Enumerations

ContractType is an enumeration with possible values: 'Gold', 'Silver'

Simple business entities

Address is a record  
    - with one streetName: Text
    - with one streetNumber: Text
    - with one city: Text

Composite entities

Contract is a record  
    - with one customer: Customer
    - with one type: ContractType

Subtyping

Customer is a record  
    - with one fiscalId: Text
    - with one address: Address
IndividualCustomer is a Customer  
    - with one familyName: Text
    - with one givenName: Text
    - with one dateOfBirth: Date
Company is a Customer  
    - with one businessName: Text
    - with one legalForm: LegalForm