7. Build Multiple Teams
An important feature in software development is to build role-based teams so each of them can login and access APIs in own domain.
Let’s build two teams, cust for customers and empl for employees:
- cust: authenticated by column pair {
contactLastName,postalCode} in table customers. A cust member is uniquely identified bycustomerNumber. - empl: authenticated by column pair {
email,extension} in table employees. An empl member is uniquely identified byemployeeNumber.
In real use case, we will have columns username and password in customers and employees.