/* jshint indent: 2 */

export default function (sequelize, DataTypes) {
  return sequelize.define('hdl_members', {
    id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      autoIncrement: true
    },
    user_id: {
      type: DataTypes.STRING(32),
      allowNull: false
    },
    user_name: {
      type: DataTypes.STRING(50),
      allowNull: false
    },
    user_level: {
      type: DataTypes.INTEGER(3),
      allowNull: false
    },
    r_code: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    user_vip: {
      type: DataTypes.INTEGER(2),
      allowNull: false
    },
    user_fire: {
      type: DataTypes.INTEGER(20),
      allowNull: false
    },
    g_code: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    user_active: {
      type: DataTypes.BOOLEAN,
      allowNull: true
    },
    user_enter_date: {
      type: DataTypes.DATE,
      allowNull: true
    },
    user_content: {
      type: DataTypes.STRING(255),
      allowNull: true
    },
    avatar: {
      type: DataTypes.STRING(255),
      allowNull: true
    }
  }, {
    tableName: 'hdl_members'
  })
};
