module.exports = (db, DataTypes) => {
  return db.define("attachment", {
    key:DataTypes.STRING,
    name: DataTypes.STRING,
    originUrl:DataTypes.STRING,
    transformUrl:DataTypes.STRING,
    description: DataTypes.STRING,
    userId:DataTypes.STRING,
    userName:DataTypes.STRING,
    appId:DataTypes.STRING,
    appName:DataTypes.STRING,
    count:DataTypes.INTEGER
  },{
     paranoid: true,//假的删除
     underscored: true,
     version: true,
     freezeTableName: true,
     //freezeTableName: true,
     // define the table's name
     tableName: 'p_attachment',
     validate: {
     }
  });
}
