Examples below assume a Customer that hasMany Clients, and a Client belongsTo a Customer. And, a Customer hasOne Administrator (for example purposes)
belongsTo
must include exact foreignKey
entry of column name of this table that links to the parent table
- Client "relations" section:
"type": "belongsTo",
"model": "Customer",
"foreignKey": customerId"