module.exports = (db, DataTypes) => {
  return db.define("company", {
    name: {
      type:DataTypes.STRING,
      allowNull: false,
    },
    creditCode: {
      type:DataTypes.STRING,
      allowNull: true,
    },
    licenseUrl: DataTypes.STRING,
    description: DataTypes.STRING,
    companykey:{
      type:DataTypes.STRING,
      allowNull: true,
    },
  },{
     paranoid: true,//假的删除
     underscored: true,
     version: true,
     freezeTableName: true,
     tableName: 'p_company',
     validate: {
     },
  });
}
