{"action":"opened","number":86,"pull_request":{"url":"https://api.github.com/repos/Vincit/objection.js/pulls/86","id":59637070,"html_url":"https://github.com/Vincit/objection.js/pull/86","diff_url":"https://github.com/Vincit/objection.js/pull/86.diff","patch_url":"https://github.com/Vincit/objection.js/pull/86.patch","issue_url":"https://api.github.com/repos/Vincit/objection.js/issues/86","number":86,"state":"open","locked":false,"title":"add schema support in models","user":{"login":"ArsalanDotMe","id":1993303,"avatar_url":"https://avatars.githubusercontent.com/u/1993303?v=3","gravatar_id":"","url":"https://api.github.com/users/ArsalanDotMe","html_url":"https://github.com/ArsalanDotMe","followers_url":"https://api.github.com/users/ArsalanDotMe/followers","following_url":"https://api.github.com/users/ArsalanDotMe/following{/other_user}","gists_url":"https://api.github.com/users/ArsalanDotMe/gists{/gist_id}","starred_url":"https://api.github.com/users/ArsalanDotMe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArsalanDotMe/subscriptions","organizations_url":"https://api.github.com/users/ArsalanDotMe/orgs","repos_url":"https://api.github.com/users/ArsalanDotMe/repos","events_url":"https://api.github.com/users/ArsalanDotMe/events{/privacy}","received_events_url":"https://api.github.com/users/ArsalanDotMe/received_events","type":"User","site_admin":false},"body":"This simple commit adds ability to override the default schema in queries. \r\nDefine schemaName in your model like this:\r\n```javascript\r\nclass MyModel extends Model {\r\n  static get schemaName() { return 'api'; }\r\n}\r\n```","created_at":"2016-02-17T12:30:38Z","updated_at":"2016-02-17T12:30:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Vincit/objection.js/pulls/86/commits","review_comments_url":"https://api.github.com/repos/Vincit/objection.js/pulls/86/comments","review_comment_url":"https://api.github.com/repos/Vincit/objection.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Vincit/objection.js/issues/86/comments","statuses_url":"https://api.github.com/repos/Vincit/objection.js/statuses/a2ccc69ce176e8a251c9f4b2717cf84bd73fc673","head":{"label":"ArsalanDotMe:master","ref":"master","sha":"a2ccc69ce176e8a251c9f4b2717cf84bd73fc673","user":{"login":"ArsalanDotMe","id":1993303,"avatar_url":"https://avatars.githubusercontent.com/u/1993303?v=3","gravatar_id":"","url":"https://api.github.com/users/ArsalanDotMe","html_url":"https://github.com/ArsalanDotMe","followers_url":"https://api.github.com/users/ArsalanDotMe/followers","following_url":"https://api.github.com/users/ArsalanDotMe/following{/other_user}","gists_url":"https://api.github.com/users/ArsalanDotMe/gists{/gist_id}","starred_url":"https://api.github.com/users/ArsalanDotMe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArsalanDotMe/subscriptions","organizations_url":"https://api.github.com/users/ArsalanDotMe/orgs","repos_url":"https://api.github.com/users/ArsalanDotMe/repos","events_url":"https://api.github.com/users/ArsalanDotMe/events{/privacy}","received_events_url":"https://api.github.com/users/ArsalanDotMe/received_events","type":"User","site_admin":false},"repo":{"id":51920747,"name":"objection.js","full_name":"ArsalanDotMe/objection.js","owner":{"login":"ArsalanDotMe","id":1993303,"avatar_url":"https://avatars.githubusercontent.com/u/1993303?v=3","gravatar_id":"","url":"https://api.github.com/users/ArsalanDotMe","html_url":"https://github.com/ArsalanDotMe","followers_url":"https://api.github.com/users/ArsalanDotMe/followers","following_url":"https://api.github.com/users/ArsalanDotMe/following{/other_user}","gists_url":"https://api.github.com/users/ArsalanDotMe/gists{/gist_id}","starred_url":"https://api.github.com/users/ArsalanDotMe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArsalanDotMe/subscriptions","organizations_url":"https://api.github.com/users/ArsalanDotMe/orgs","repos_url":"https://api.github.com/users/ArsalanDotMe/repos","events_url":"https://api.github.com/users/ArsalanDotMe/events{/privacy}","received_events_url":"https://api.github.com/users/ArsalanDotMe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ArsalanDotMe/objection.js","description":"An SQL-friendly ORM for Node.js","fork":true,"url":"https://api.github.com/repos/ArsalanDotMe/objection.js","forks_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/forks","keys_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/teams","hooks_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/hooks","issue_events_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/issues/events{/number}","events_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/events","assignees_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/assignees{/user}","branches_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/branches{/branch}","tags_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/tags","blobs_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/statuses/{sha}","languages_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/languages","stargazers_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/stargazers","contributors_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/contributors","subscribers_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/subscribers","subscription_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/subscription","commits_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/contents/{+path}","compare_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/merges","archive_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/downloads","issues_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/issues{/number}","pulls_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/pulls{/number}","milestones_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/milestones{/number}","notifications_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/labels{/name}","releases_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/releases{/id}","deployments_url":"https://api.github.com/repos/ArsalanDotMe/objection.js/deployments","created_at":"2016-02-17T12:24:11Z","updated_at":"2016-02-17T12:24:12Z","pushed_at":"2016-02-17T12:29:55Z","git_url":"git://github.com/ArsalanDotMe/objection.js.git","ssh_url":"git@github.com:ArsalanDotMe/objection.js.git","clone_url":"https://github.com/ArsalanDotMe/objection.js.git","svn_url":"https://github.com/ArsalanDotMe/objection.js","homepage":"http://vincit.github.io/objection.js","size":2115,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Vincit:master","ref":"master","sha":"df456c93c80e364b61ce3f49570ef9b525ccf1ac","user":{"login":"Vincit","id":710715,"avatar_url":"https://avatars.githubusercontent.com/u/710715?v=3","gravatar_id":"","url":"https://api.github.com/users/Vincit","html_url":"https://github.com/Vincit","followers_url":"https://api.github.com/users/Vincit/followers","following_url":"https://api.github.com/users/Vincit/following{/other_user}","gists_url":"https://api.github.com/users/Vincit/gists{/gist_id}","starred_url":"https://api.github.com/users/Vincit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vincit/subscriptions","organizations_url":"https://api.github.com/users/Vincit/orgs","repos_url":"https://api.github.com/users/Vincit/repos","events_url":"https://api.github.com/users/Vincit/events{/privacy}","received_events_url":"https://api.github.com/users/Vincit/received_events","type":"Organization","site_admin":false},"repo":{"id":33925906,"name":"objection.js","full_name":"Vincit/objection.js","owner":{"login":"Vincit","id":710715,"avatar_url":"https://avatars.githubusercontent.com/u/710715?v=3","gravatar_id":"","url":"https://api.github.com/users/Vincit","html_url":"https://github.com/Vincit","followers_url":"https://api.github.com/users/Vincit/followers","following_url":"https://api.github.com/users/Vincit/following{/other_user}","gists_url":"https://api.github.com/users/Vincit/gists{/gist_id}","starred_url":"https://api.github.com/users/Vincit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vincit/subscriptions","organizations_url":"https://api.github.com/users/Vincit/orgs","repos_url":"https://api.github.com/users/Vincit/repos","events_url":"https://api.github.com/users/Vincit/events{/privacy}","received_events_url":"https://api.github.com/users/Vincit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Vincit/objection.js","description":"An SQL-friendly ORM for Node.js","fork":false,"url":"https://api.github.com/repos/Vincit/objection.js","forks_url":"https://api.github.com/repos/Vincit/objection.js/forks","keys_url":"https://api.github.com/repos/Vincit/objection.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vincit/objection.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vincit/objection.js/teams","hooks_url":"https://api.github.com/repos/Vincit/objection.js/hooks","issue_events_url":"https://api.github.com/repos/Vincit/objection.js/issues/events{/number}","events_url":"https://api.github.com/repos/Vincit/objection.js/events","assignees_url":"https://api.github.com/repos/Vincit/objection.js/assignees{/user}","branches_url":"https://api.github.com/repos/Vincit/objection.js/branches{/branch}","tags_url":"https://api.github.com/repos/Vincit/objection.js/tags","blobs_url":"https://api.github.com/repos/Vincit/objection.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vincit/objection.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vincit/objection.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vincit/objection.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vincit/objection.js/statuses/{sha}","languages_url":"https://api.github.com/repos/Vincit/objection.js/languages","stargazers_url":"https://api.github.com/repos/Vincit/objection.js/stargazers","contributors_url":"https://api.github.com/repos/Vincit/objection.js/contributors","subscribers_url":"https://api.github.com/repos/Vincit/objection.js/subscribers","subscription_url":"https://api.github.com/repos/Vincit/objection.js/subscription","commits_url":"https://api.github.com/repos/Vincit/objection.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vincit/objection.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vincit/objection.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vincit/objection.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vincit/objection.js/contents/{+path}","compare_url":"https://api.github.com/repos/Vincit/objection.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vincit/objection.js/merges","archive_url":"https://api.github.com/repos/Vincit/objection.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vincit/objection.js/downloads","issues_url":"https://api.github.com/repos/Vincit/objection.js/issues{/number}","pulls_url":"https://api.github.com/repos/Vincit/objection.js/pulls{/number}","milestones_url":"https://api.github.com/repos/Vincit/objection.js/milestones{/number}","notifications_url":"https://api.github.com/repos/Vincit/objection.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vincit/objection.js/labels{/name}","releases_url":"https://api.github.com/repos/Vincit/objection.js/releases{/id}","deployments_url":"https://api.github.com/repos/Vincit/objection.js/deployments","created_at":"2015-04-14T10:36:51Z","updated_at":"2016-02-16T02:19:32Z","pushed_at":"2016-02-14T15:40:29Z","git_url":"git://github.com/Vincit/objection.js.git","ssh_url":"git@github.com:Vincit/objection.js.git","clone_url":"https://github.com/Vincit/objection.js.git","svn_url":"https://github.com/Vincit/objection.js","homepage":"http://vincit.github.io/objection.js","size":2222,"stargazers_count":519,"watchers_count":519,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":15,"mirror_url":null,"open_issues_count":17,"forks":15,"open_issues":17,"watchers":519,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Vincit/objection.js/pulls/86"},"html":{"href":"https://github.com/Vincit/objection.js/pull/86"},"issue":{"href":"https://api.github.com/repos/Vincit/objection.js/issues/86"},"comments":{"href":"https://api.github.com/repos/Vincit/objection.js/issues/86/comments"},"review_comments":{"href":"https://api.github.com/repos/Vincit/objection.js/pulls/86/comments"},"review_comment":{"href":"https://api.github.com/repos/Vincit/objection.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Vincit/objection.js/pulls/86/commits"},"statuses":{"href":"https://api.github.com/repos/Vincit/objection.js/statuses/a2ccc69ce176e8a251c9f4b2717cf84bd73fc673"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":1,"changed_files":1}}