{"action":"closed","issue":{"url":"https://api.github.com/repos/MichalKononenko/OmicronServer/issues/54","labels_url":"https://api.github.com/repos/MichalKononenko/OmicronServer/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/MichalKononenko/OmicronServer/issues/54/comments","events_url":"https://api.github.com/repos/MichalKononenko/OmicronServer/issues/54/events","html_url":"https://github.com/MichalKononenko/OmicronServer/issues/54","id":119070894,"number":54,"title":"Make Use of Single Table Inheritance for Users","user":{"login":"MichalKononenko","id":8391612,"avatar_url":"https://avatars.githubusercontent.com/u/8391612?v=3","gravatar_id":"","url":"https://api.github.com/users/MichalKononenko","html_url":"https://github.com/MichalKononenko","followers_url":"https://api.github.com/users/MichalKononenko/followers","following_url":"https://api.github.com/users/MichalKononenko/following{/other_user}","gists_url":"https://api.github.com/users/MichalKononenko/gists{/gist_id}","starred_url":"https://api.github.com/users/MichalKononenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichalKononenko/subscriptions","organizations_url":"https://api.github.com/users/MichalKononenko/orgs","repos_url":"https://api.github.com/users/MichalKononenko/repos","events_url":"https://api.github.com/users/MichalKononenko/events{/privacy}","received_events_url":"https://api.github.com/users/MichalKononenko/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"MichalKononenko","id":8391612,"avatar_url":"https://avatars.githubusercontent.com/u/8391612?v=3","gravatar_id":"","url":"https://api.github.com/users/MichalKononenko","html_url":"https://github.com/MichalKononenko","followers_url":"https://api.github.com/users/MichalKononenko/followers","following_url":"https://api.github.com/users/MichalKononenko/following{/other_user}","gists_url":"https://api.github.com/users/MichalKononenko/gists{/gist_id}","starred_url":"https://api.github.com/users/MichalKononenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichalKononenko/subscriptions","organizations_url":"https://api.github.com/users/MichalKononenko/orgs","repos_url":"https://api.github.com/users/MichalKononenko/repos","events_url":"https://api.github.com/users/MichalKononenko/events{/privacy}","received_events_url":"https://api.github.com/users/MichalKononenko/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-11-26T16:03:42Z","updated_at":"2016-01-11T14:45:23Z","closed_at":"2016-01-11T14:45:23Z","body":"Administrators now are defined with a flag in the ```User``` class that tells whether the user is an administrator. Rather than encoding this directly in ```User```, SQLAlchemy can let us create an ```Administrator``` class that inherits from ```User``` using [single-table inheritance](http://docs.sqlalchemy.org/en/latest/orm/inheritance.html#single-table-inheritance). This would provide a much cleaner API to working with Administrators."}}