module.exports = (db, DataTypes) => {
  return db.define("bmrequirements", {
    name: DataTypes.STRING(50),
    type: DataTypes.STRING(100),
    teamName: DataTypes.STRING(20),
    budget: DataTypes.INTEGER,
    desc: DataTypes.STRING(300),
    status: DataTypes.INTEGER,
    publish_time: DataTypes.DATE,
  }, {
    paranoid: true, //假的删除
    underscored: true,
    version: true,
    freezeTableName: true,
    //freezeTableName: true,
    // define the table's name
    tableName: 'bm_requirements',
    validate: {}
  });
}