module.exports = (db, DataTypes) => {
    return db.define("drafthistory", {
      userId: DataTypes.INTEGER,
      draftName: DataTypes.STRING(100),
      draftData: DataTypes.JSON
    },{
       paranoid: true,//假的删除
       underscored: true,
       version: false,
       freezeTableName: true,
       //freezeTableName: true,
       // define the table's name
       tableName: 'tm_draft_history', //tm前缀代表商标
       timestamps: false,
       validate: {
  
       },
       indexes:[]
    });
  }
  