我一直在尝试创建一个user model
使用sequelize cli,但每当我插入更多参数(如主键和唯一)时,解析器就会失败。例如:
npx sequelize model:create --name user --attributes "name:{dataType:string, primaryKey:true}, email:string, address:string" --force
Sequelize CLI [Node: 8.10.0, CLI: 5.4.0, ORM: 5.1.0]
ERROR: Attribute 'name:{dataType:string, primaryKey:true}' cannot be parsed: Cannot read property 'dataType' of undefined
我在 中没有找到任何参考Docs https://github.com/sequelize/cli/tree/master/docs对这个。有什么办法可以做到吗?
您可以在此处找到可用命令列表
https://github.com/sequelize/cli https://github.com/sequelize/cli
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)