here i want to create model relations on StrongLoop. I have this kind of scenario:
- Category:
- id:1
- name:history
- Book
- id:1
- id_category:1
- title:american-hustle
- id_publisher:1
- --------------------------
- id:2
- id_category:1
- title:american-hustle2
- id_publisher:2
- Publisher
- id:1
- name:Publisher-1
- --------------------------
- id:2
- name:Publisher-2
how can i create model relations like that? Thanks.