{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/sequelize-auto/issues/78","repository_url":"https://api.github.com/repos/sequelize/sequelize-auto","labels_url":"https://api.github.com/repos/sequelize/sequelize-auto/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize-auto/issues/78/comments","events_url":"https://api.github.com/repos/sequelize/sequelize-auto/issues/78/events","html_url":"https://github.com/sequelize/sequelize-auto/issues/78","id":155708259,"number":78,"title":"UUID primary key for MSSQL","user":{"login":"deksden","id":2203023,"avatar_url":"https://avatars3.githubusercontent.com/u/2203023?v=4","gravatar_id":"","url":"https://api.github.com/users/deksden","html_url":"https://github.com/deksden","followers_url":"https://api.github.com/users/deksden/followers","following_url":"https://api.github.com/users/deksden/following{/other_user}","gists_url":"https://api.github.com/users/deksden/gists{/gist_id}","starred_url":"https://api.github.com/users/deksden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deksden/subscriptions","organizations_url":"https://api.github.com/users/deksden/orgs","repos_url":"https://api.github.com/users/deksden/repos","events_url":"https://api.github.com/users/deksden/events{/privacy}","received_events_url":"https://api.github.com/users/deksden/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-05-19T10:52:25Z","updated_at":"2018-03-19T04:30:00Z","closed_at":"2016-05-19T14:51:16Z","author_association":"CONTRIBUTOR","body":"After importing some MS SQL (2008R2) table i have following field definition in my model:\n\n```\nID: {\n     type: 'UNIQUEIDENTIFIER',\n     allowNull: false,\n     defaultValue: '(newid())',\n     primaryKey: true\n }, \n```\n\nActually, IMHO, it should be like this:\n\n```\nID: {\n     type: DataTypes.UUIDV4,\n     allowNull: false,\n     primaryKey: true\n }, \n```\n\nP.S. .UUIDV4 makes this field as uuid-type and auto-generate new value for it \n"},"comment":{"url":"https://api.github.com/repos/sequelize/sequelize-auto/issues/comments/374098563","html_url":"https://github.com/sequelize/sequelize-auto/issues/78#issuecomment-374098563","issue_url":"https://api.github.com/repos/sequelize/sequelize-auto/issues/78","id":374098563,"user":{"login":"deksden","id":2203023,"avatar_url":"https://avatars3.githubusercontent.com/u/2203023?v=4","gravatar_id":"","url":"https://api.github.com/users/deksden","html_url":"https://github.com/deksden","followers_url":"https://api.github.com/users/deksden/followers","following_url":"https://api.github.com/users/deksden/following{/other_user}","gists_url":"https://api.github.com/users/deksden/gists{/gist_id}","starred_url":"https://api.github.com/users/deksden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deksden/subscriptions","organizations_url":"https://api.github.com/users/deksden/orgs","repos_url":"https://api.github.com/users/deksden/repos","events_url":"https://api.github.com/users/deksden/events{/privacy}","received_events_url":"https://api.github.com/users/deksden/received_events","type":"User","site_admin":false},"created_at":"2018-03-19T04:30:00Z","updated_at":"2018-03-19T04:30:00Z","author_association":"CONTRIBUTOR","body":"Any code/sample? What SQL Server version? \r\n\r\nAs for time of that issue 2 yrs ago all was fine with tested SQL server versions"}}
{"actor":{"display_login":"deksden"}}