var Sequelize = require(‘sequelize’);
var sequelize = require(’./ModelHeader’);
var PetinfoModel = sequelize.define(‘petinfos’,{ id:{type:Sequelize.BIGINT,primaryKey:true}, uid:Sequelize.BIGINT, nickname:Sequelize.STRING, pettype:Sequelize.INTEGER, petsort:Sequelize.INTEGER, sex:Sequelize.TEXT(‘tiny’), age:Sequelize.INTERGER, introduce:Sequelize.STRING, updtime:Sequelize.DATE, createtime:Sequelize.DATE },{ timestamps:false, }); module.exports = PetinfoModel;
然后服务端报这个错误
throw new Error('Unrecognized data type for field ’ + name); ^ Error: Unrecognized data type for field age
我在网上查了,可这个错误出现的很少,什么情况