Skip to content

Commit

Permalink
feat: custom primary key example
Browse files Browse the repository at this point in the history
  • Loading branch information
tshemsedinov committed Oct 8, 2020
1 parent 3d54df5 commit ca0dd04
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/schemas/Company.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
({
name: { type: 'string', unique: true },
});
6 changes: 6 additions & 0 deletions application/schemas/CompanyCity.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
({
company: 'Company',
city: 'City',

companyCity: { primary: ['Company', 'City'] },
});

0 comments on commit ca0dd04

Please sign in to comment.