n..1.joins.js 380 B

12345678910111213141516
  1. /**
  2. * Joins
  3. *
  4. * @type {Array}
  5. */
  6. module.exports = [
  7. {
  8. alias: 'from', // the `alias` -- e.g. name of association
  9. parent: 'message', // left table name
  10. parentCollectionIdentity: 'message',
  11. parentKey: 'from', // left table key
  12. child: 'user', // right table name
  13. childKey: 'id', // right table key
  14. childCollectionIdentity: 'user'
  15. }
  16. ];