| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 | /* indent size: 2 */// eslint-disable-next-line strictmodule.exports = app => {  const DataTypes = app.Sequelize;  const Model = app.model.define('UserLoginLogs', {    id: {      type: DataTypes.INTEGER(10).UNSIGNED,      allowNull: false,      primaryKey: true,      autoIncrement: true,    },    user_id: {      type: DataTypes.INTEGER(10),      allowNull: true,    },    nickname: {      type: DataTypes.STRING(128),      allowNull: true,    },    headimgurl: {      type: DataTypes.STRING(256),      allowNull: true,    },    login_time: {      type: DataTypes.TIME,      allowNull: true,    },    update_ttime: {      type: DataTypes.TIME,      allowNull: true,    },    create_time: {      type: DataTypes.TIME,      allowNull: true,    },  }, {    tableName: 'szj_users_login_logs',  });  Model.associate = function() {  };  // 同步:没有就新建,有就不变  Model.sync();  return Model;};
 |