January 2020
Intermediate to advanced
428 pages
10h 34m
English
Now that we have defined our entities, let's add relationships between them:
relationship OneToOne { Customer{user} to User}
The first relationship declared is a unidirectional OneToOne between a Customer entity and the inbuilt User entity:
Customer (1) -----> (1) User
It means that the Customer entity knows about the User and is the owner of the relationship, but the User doesn't know about the Customer, and so we will not be able to obtain customers from a User. This lets us map customers to the User entity and use it for authorization purposes later, ensuring that one customer can be mapped to only one system user.
Read now
Unlock full access