A column called ‘id‘ was added to the attributes of ‘users‘ but not marked with ‘primaryKey: true‘
router.post('/login', jsonParser, function (req, res, next) { try { const User = sequelize.define('User', { id:DataTypes.INTEGER, name: DataTypes.STRING, code: DataTypes.STRING, create_date: DataTypes.DATE, update_date:
原创
2021-01-05 15:48:09 ·
1846 阅读 ·
0 评论