{"action":"closed","issue":{"url":"https://api.github.com/repos/go-pg/pg/issues/976","repository_url":"https://api.github.com/repos/go-pg/pg","labels_url":"https://api.github.com/repos/go-pg/pg/issues/976/labels{/name}","comments_url":"https://api.github.com/repos/go-pg/pg/issues/976/comments","events_url":"https://api.github.com/repos/go-pg/pg/issues/976/events","html_url":"https://github.com/go-pg/pg/issues/976","id":358563781,"node_id":"MDU6SXNzdWUzNTg1NjM3ODE=","number":976,"title":"How to reference to a table with multiple primary keys","user":{"login":"bonjefir","id":23652454,"node_id":"MDQ6VXNlcjIzNjUyNDU0","avatar_url":"https://avatars3.githubusercontent.com/u/23652454?v=4","gravatar_id":"","url":"https://api.github.com/users/bonjefir","html_url":"https://github.com/bonjefir","followers_url":"https://api.github.com/users/bonjefir/followers","following_url":"https://api.github.com/users/bonjefir/following{/other_user}","gists_url":"https://api.github.com/users/bonjefir/gists{/gist_id}","starred_url":"https://api.github.com/users/bonjefir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bonjefir/subscriptions","organizations_url":"https://api.github.com/users/bonjefir/orgs","repos_url":"https://api.github.com/users/bonjefir/repos","events_url":"https://api.github.com/users/bonjefir/events{/privacy}","received_events_url":"https://api.github.com/users/bonjefir/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-10T10:33:24Z","updated_at":"2018-09-19T10:06:45Z","closed_at":"2018-09-19T10:06:45Z","author_association":"NONE","body":"Is there any way to reference a table which has multiple primary keys?\r\n\r\n```\r\ntype Account struct {\r\n\tID      uint   `json:\"id\" sql:\",pk\"`\r\n\tName    string `json:\"name\" sql:\",pk\"`\r\n}\r\n```\r\nAs a simple example `information` wants foreign key to `Account`\r\n```\r\ntype Information struct {\r\n\tID      uint   `json:\"id\" sql:\",pk\"`\r\n        //...    foreign key to Account???\r\n}\r\n```"}}
{"actor":{"display_login":"vmihailenco"}}