{"action":"opened","issue":{"url":"https://api.github.com/repos/Septima/fikspunktsregister/issues/9","repository_url":"https://api.github.com/repos/Septima/fikspunktsregister","labels_url":"https://api.github.com/repos/Septima/fikspunktsregister/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/Septima/fikspunktsregister/issues/9/comments","events_url":"https://api.github.com/repos/Septima/fikspunktsregister/issues/9/events","html_url":"https://github.com/Septima/fikspunktsregister/issues/9","id":381587373,"node_id":"MDU6SXNzdWUzODE1ODczNzM=","number":9,"title":"Relations","user":{"login":"AsgerPetersen","id":1392735,"node_id":"MDQ6VXNlcjEzOTI3MzU=","avatar_url":"https://avatars2.githubusercontent.com/u/1392735?v=4","gravatar_id":"","url":"https://api.github.com/users/AsgerPetersen","html_url":"https://github.com/AsgerPetersen","followers_url":"https://api.github.com/users/AsgerPetersen/followers","following_url":"https://api.github.com/users/AsgerPetersen/following{/other_user}","gists_url":"https://api.github.com/users/AsgerPetersen/gists{/gist_id}","starred_url":"https://api.github.com/users/AsgerPetersen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AsgerPetersen/subscriptions","organizations_url":"https://api.github.com/users/AsgerPetersen/orgs","repos_url":"https://api.github.com/users/AsgerPetersen/repos","events_url":"https://api.github.com/users/AsgerPetersen/events{/privacy}","received_events_url":"https://api.github.com/users/AsgerPetersen/received_events","type":"User","site_admin":false},"labels":[{"id":1129954028,"node_id":"MDU6TGFiZWwxMTI5OTU0MDI4","url":"https://api.github.com/repos/Septima/fikspunktsregister/labels/SQL","name":"SQL","color":"f29130","default":false}],"state":"open","locked":false,"assignee":{"login":"kbevers","id":13132571,"node_id":"MDQ6VXNlcjEzMTMyNTcx","avatar_url":"https://avatars3.githubusercontent.com/u/13132571?v=4","gravatar_id":"","url":"https://api.github.com/users/kbevers","html_url":"https://github.com/kbevers","followers_url":"https://api.github.com/users/kbevers/followers","following_url":"https://api.github.com/users/kbevers/following{/other_user}","gists_url":"https://api.github.com/users/kbevers/gists{/gist_id}","starred_url":"https://api.github.com/users/kbevers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbevers/subscriptions","organizations_url":"https://api.github.com/users/kbevers/orgs","repos_url":"https://api.github.com/users/kbevers/repos","events_url":"https://api.github.com/users/kbevers/events{/privacy}","received_events_url":"https://api.github.com/users/kbevers/received_events","type":"User","site_admin":false},"assignees":[{"login":"kbevers","id":13132571,"node_id":"MDQ6VXNlcjEzMTMyNTcx","avatar_url":"https://avatars3.githubusercontent.com/u/13132571?v=4","gravatar_id":"","url":"https://api.github.com/users/kbevers","html_url":"https://github.com/kbevers","followers_url":"https://api.github.com/users/kbevers/followers","following_url":"https://api.github.com/users/kbevers/following{/other_user}","gists_url":"https://api.github.com/users/kbevers/gists{/gist_id}","starred_url":"https://api.github.com/users/kbevers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbevers/subscriptions","organizations_url":"https://api.github.com/users/kbevers/orgs","repos_url":"https://api.github.com/users/kbevers/repos","events_url":"https://api.github.com/users/kbevers/events{/privacy}","received_events_url":"https://api.github.com/users/kbevers/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-11-16T12:52:56Z","updated_at":"2018-11-16T12:52:56Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I am wondering, why relation from `Sagsevent` to `Sag`, and all `FikspunktregisterObjekt`s and `SagsEvent` are referring to the `VARCHAR ID` instead of the primary key. \r\n\r\nI think that where we currently have `SAGID VARCHAR` or `SAGSEVENTID VARCHAR` in our schema, it should have been `SAGOBJECTID INTEGER` and `SAGSEVENTOBJECTID INTEGER`. Of course we should also have foreign key constraints on these. Otherwise we do not have full referential integrity.\r\n\r\nAlso. If we use the primary key of Sag and Sagsevent do we then need to have a VARCHAR ID for these also?"}}
{"actor":{"display_login":"AsgerPetersen"}}