{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/5924","repository_url":"https://api.github.com/repos/sequelize/sequelize","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/5924/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/5924/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/5924/events","html_url":"https://github.com/sequelize/sequelize/pull/5924","id":155692098,"number":5924,"title":"Make instances instanceof Model, with ES6 classes","user":{"login":"felixfbecker","id":10532611,"avatar_url":"https://avatars.githubusercontent.com/u/10532611?v=3","gravatar_id":"","url":"https://api.github.com/users/felixfbecker","html_url":"https://github.com/felixfbecker","followers_url":"https://api.github.com/users/felixfbecker/followers","following_url":"https://api.github.com/users/felixfbecker/following{/other_user}","gists_url":"https://api.github.com/users/felixfbecker/gists{/gist_id}","starred_url":"https://api.github.com/users/felixfbecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixfbecker/subscriptions","organizations_url":"https://api.github.com/users/felixfbecker/orgs","repos_url":"https://api.github.com/users/felixfbecker/repos","events_url":"https://api.github.com/users/felixfbecker/events{/privacy}","received_events_url":"https://api.github.com/users/felixfbecker/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"janmeier","id":1210224,"avatar_url":"https://avatars.githubusercontent.com/u/1210224?v=3","gravatar_id":"","url":"https://api.github.com/users/janmeier","html_url":"https://github.com/janmeier","followers_url":"https://api.github.com/users/janmeier/followers","following_url":"https://api.github.com/users/janmeier/following{/other_user}","gists_url":"https://api.github.com/users/janmeier/gists{/gist_id}","starred_url":"https://api.github.com/users/janmeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janmeier/subscriptions","organizations_url":"https://api.github.com/users/janmeier/orgs","repos_url":"https://api.github.com/users/janmeier/repos","events_url":"https://api.github.com/users/janmeier/events{/privacy}","received_events_url":"https://api.github.com/users/janmeier/received_events","type":"User","site_admin":false},"assignees":[{"login":"janmeier","id":1210224,"avatar_url":"https://avatars.githubusercontent.com/u/1210224?v=3","gravatar_id":"","url":"https://api.github.com/users/janmeier","html_url":"https://github.com/janmeier","followers_url":"https://api.github.com/users/janmeier/followers","following_url":"https://api.github.com/users/janmeier/following{/other_user}","gists_url":"https://api.github.com/users/janmeier/gists{/gist_id}","starred_url":"https://api.github.com/users/janmeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janmeier/subscriptions","organizations_url":"https://api.github.com/users/janmeier/orgs","repos_url":"https://api.github.com/users/janmeier/repos","events_url":"https://api.github.com/users/janmeier/events{/privacy}","received_events_url":"https://api.github.com/users/janmeier/received_events","type":"User","site_admin":false}],"milestone":null,"comments":52,"created_at":"2016-05-19T09:29:13Z","updated_at":"2017-02-14T23:17:50Z","closed_at":"2016-05-28T07:28:31Z","pull_request":{"url":"https://api.github.com/repos/sequelize/sequelize/pulls/5924","html_url":"https://github.com/sequelize/sequelize/pull/5924","diff_url":"https://github.com/sequelize/sequelize/pull/5924.diff","patch_url":"https://github.com/sequelize/sequelize/pull/5924.patch"},"body":"This PR is a reimplementation of #5877 with ES6 classes. Reasoning is performance and that 4.0 will probably require Node >=4 or even 6.\n"},"comment":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/comments/279867914","html_url":"https://github.com/sequelize/sequelize/pull/5924#issuecomment-279867914","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/5924","id":279867914,"user":{"login":"OLDIN","id":15104330,"avatar_url":"https://avatars.githubusercontent.com/u/15104330?v=3","gravatar_id":"","url":"https://api.github.com/users/OLDIN","html_url":"https://github.com/OLDIN","followers_url":"https://api.github.com/users/OLDIN/followers","following_url":"https://api.github.com/users/OLDIN/following{/other_user}","gists_url":"https://api.github.com/users/OLDIN/gists{/gist_id}","starred_url":"https://api.github.com/users/OLDIN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OLDIN/subscriptions","organizations_url":"https://api.github.com/users/OLDIN/orgs","repos_url":"https://api.github.com/users/OLDIN/repos","events_url":"https://api.github.com/users/OLDIN/events{/privacy}","received_events_url":"https://api.github.com/users/OLDIN/received_events","type":"User","site_admin":false},"created_at":"2017-02-14T23:17:50Z","updated_at":"2017-02-14T23:17:50Z","body":"@nervgh \r\n\r\n    // user.js \r\n    export default class User {\r\n\r\n      constructor(sequelize, types) {\r\n\r\n        return sequelize.define(\"users\", {\r\n          steamid: types.STRING(20),\r\n          name: types.STRING(30),\r\n          avatar: types.STRING(30),\r\n          coins: types.INTEGER,\r\n          permissions: types.INTEGER(1),\r\n          banned: types.BOOLEAN\r\n        });\r\n\r\n      }\r\n\r\n    }\r\n\r\n    // index.js\r\n    import userModel from './models/user';\r\n\r\n    const User = sequelize.import('users', function(sequelize, DataTypes) {\r\n      return new userModel(sequelize, Sequelize.DataTypes);\r\n    })\r\n"}}
{"actor":{"display_login":"OLDIN"}}