{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/317","labels_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/317/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/317/comments","events_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/317/events","html_url":"https://github.com/strongloop/loopback-datasource-juggler/issues/317","id":44989813,"number":317,"title":"no control over link tables in HasAndBelongsToMany","user":{"login":"punund","id":95124,"avatar_url":"https://avatars.githubusercontent.com/u/95124?v=3","gravatar_id":"","url":"https://api.github.com/users/punund","html_url":"https://github.com/punund","followers_url":"https://api.github.com/users/punund/followers","following_url":"https://api.github.com/users/punund/following{/other_user}","gists_url":"https://api.github.com/users/punund/gists{/gist_id}","starred_url":"https://api.github.com/users/punund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/punund/subscriptions","organizations_url":"https://api.github.com/users/punund/orgs","repos_url":"https://api.github.com/users/punund/repos","events_url":"https://api.github.com/users/punund/events{/privacy}","received_events_url":"https://api.github.com/users/punund/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-10-06T14:29:41Z","updated_at":"2015-02-05T22:07:57Z","closed_at":"2015-02-05T22:07:57Z","body":"There is no way to customize the name of the link table in HasAndBelongsToMany relations.  Also, the code insists that this table should have the `id` column, which is, strictly speaking, not needed, as primary key is composed from the ids of tables being joint.\r\n\r\nThis makes it difficult to reuse existing database structure."},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/comments/73140479","html_url":"https://github.com/strongloop/loopback-datasource-juggler/issues/317#issuecomment-73140479","issue_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/317","id":73140479,"user":{"login":"raymondfeng","id":540892,"avatar_url":"https://avatars.githubusercontent.com/u/540892?v=3","gravatar_id":"","url":"https://api.github.com/users/raymondfeng","html_url":"https://github.com/raymondfeng","followers_url":"https://api.github.com/users/raymondfeng/followers","following_url":"https://api.github.com/users/raymondfeng/following{/other_user}","gists_url":"https://api.github.com/users/raymondfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/raymondfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymondfeng/subscriptions","organizations_url":"https://api.github.com/users/raymondfeng/orgs","repos_url":"https://api.github.com/users/raymondfeng/repos","events_url":"https://api.github.com/users/raymondfeng/events{/privacy}","received_events_url":"https://api.github.com/users/raymondfeng/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T22:07:57Z","updated_at":"2015-02-05T22:07:57Z","body":"You need to run `automigrate` or `autoupdate` to create tables in your DB. See http://docs.strongloop.com/display/LB/Creating+a+database+schema+from+models"}}