阅读背景:

节点的Sequelize不允许在主键上自动生成UUID *除非*字段名称为'id'

来源:互联网 

This Sequelize commit seems to confirm that naming a primary-key 'id' makes it special. And based on my tests with the following snippet, changing the fieldname to something other than 'id' is enough for no default value to be set and, therefore, inserts fail. seems to confirm that nam




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: