ms_wx_user.ts 699 字节
module.exports = function(sequelize:any, DataTypes:any) {
    return sequelize.define('ms_wx_user', {
      user_id: {
        type: DataTypes.INTEGER(11),
        allowNull: false,
        primaryKey: true,
      },
      user_name:{
        type: DataTypes.STRING(50),
        allowNull: false
      },
      wx_openid: {
        type: DataTypes.STRING(50),
        allowNull: false
      },
      wx_info: {
        type: DataTypes.JSON,
        allowNull: false
      },
      created_at: {
        type: DataTypes.DATE,
        allowNull: true,
      },
      deleted_at: {
        type: DataTypes.DATE,
        allowNull: true,
      }      
    }, {
      tableName: 'ms_wx_user'
    });
  };