module.exports = (db, DataTypes) => {
  return db.define("role", {
    name: DataTypes.STRING,
    code: DataTypes.STRING,
    description: DataTypes.STRING,
    isSystem: {//是否系统数据,0否，1是
      type: DataTypes.BOOLEAN,
      defaultValue: false,
    },   
  },{
     paranoid: true,//假的删除
     underscored: true,
     version: true,
     freezeTableName: true,
     //freezeTableName: true,
     // define the table's name
     tableName: 'p_role',
     validate: {
     }
  });
}
