{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/2144","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/2144/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/2144/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/2144/events","html_url":"https://github.com/sequelize/sequelize/issues/2144","id":40064989,"number":2144,"title":"Field not used in bulkCreate","user":{"login":"legomind","id":3710857,"avatar_url":"https://avatars.githubusercontent.com/u/3710857?v=3","gravatar_id":"","url":"https://api.github.com/users/legomind","html_url":"https://github.com/legomind","followers_url":"https://api.github.com/users/legomind/followers","following_url":"https://api.github.com/users/legomind/following{/other_user}","gists_url":"https://api.github.com/users/legomind/gists{/gist_id}","starred_url":"https://api.github.com/users/legomind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/legomind/subscriptions","organizations_url":"https://api.github.com/users/legomind/orgs","repos_url":"https://api.github.com/users/legomind/repos","events_url":"https://api.github.com/users/legomind/events{/privacy}","received_events_url":"https://api.github.com/users/legomind/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sequelize/sequelize/labels/question","name":"question","color":"02d7e1"},{"url":"https://api.github.com/repos/sequelize/sequelize/labels/waiting","name":"waiting","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-08-12T15:11:46Z","updated_at":"2015-05-31T01:44:51Z","closed_at":null,"body":"\r\n`bulkCreate()` when not using `field`: \r\n\r\n```livescript\r\nUser = db.define \\user, {\r\n\r\n  first-name:\r\n    type: sql.STRING\r\n\r\n  last-name:\r\n    type: sql.STRING\r\n\r\n  middle-name:\r\n    type: sql.STRING\r\n\r\n  username:\r\n    type: sql.STRING\r\n\r\n  email:\r\n    type: sql.STRING\r\n\r\n  nickname:\r\n    type: sql.STRING\r\n\r\n  password:\r\n    type: sql.STRING\r\n\r\n  gender:\r\n    type: sql.ENUM \\male, \\female\r\n\r\n  date-of-birth:\r\n    type: sql.DATE\r\n\r\n}\r\n```\r\n\r\n```sql\r\nINSERT INTO \"users\" (\r\n  \"id\"\r\n  ,\"firstName\"\r\n  ,\"lastName\"\r\n  ,\"middleName\"\r\n  ,\"username\"\r\n  ,\"email\"\r\n  ,\"nickname\"\r\n  ,\"password\"\r\n  ,\"gender\"\r\n  ,\"dateOfBirth\"\r\n  ,\"created_at\"\r\n  ,\"updated_at\"\r\n) \r\nVALUES (...)\r\n```\r\n\r\n`bulkCreate()` when using `field`:\r\n\r\n```livescript\r\nModel = (schema) -> #Just adds an underscored `field` key to the attrs\r\n  { [k, (v.field = underscored k; v)] for k,v of schema }\r\n\r\nUser = db.define \\user, Model { ... } #Same as before, just adding `field`\r\n```\r\n```sql\r\nINSERT INTO \"users\" (\r\n  \"id\"\r\n  ,\"created_at\"\r\n  ,\"updated_at\"\r\n  ,\"first_name\"\r\n  ,\"last_name\"\r\n  ,\"middle_name\"\r\n  ,\"date_of_birth\"\r\n) VALUES (...)\r\n```"},"comment":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/comments/107106650","html_url":"https://github.com/sequelize/sequelize/issues/2144#issuecomment-107106650","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/2144","id":107106650,"user":{"login":"BridgeAR","id":8822573,"avatar_url":"https://avatars.githubusercontent.com/u/8822573?v=3","gravatar_id":"","url":"https://api.github.com/users/BridgeAR","html_url":"https://github.com/BridgeAR","followers_url":"https://api.github.com/users/BridgeAR/followers","following_url":"https://api.github.com/users/BridgeAR/following{/other_user}","gists_url":"https://api.github.com/users/BridgeAR/gists{/gist_id}","starred_url":"https://api.github.com/users/BridgeAR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BridgeAR/subscriptions","organizations_url":"https://api.github.com/users/BridgeAR/orgs","repos_url":"https://api.github.com/users/BridgeAR/repos","events_url":"https://api.github.com/users/BridgeAR/events{/privacy}","received_events_url":"https://api.github.com/users/BridgeAR/received_events","type":"User","site_admin":false},"created_at":"2015-05-31T01:44:51Z","updated_at":"2015-05-31T01:44:51Z","body":"@janmeier I guess this should be closed. If there was an issue in sequelize it'll be solved by now."}}