module.exports = function(sequelize, DataTypes) {
  return sequelize.define('trademarkcase', {
    caseId: DataTypes.STRING,
    orderId: DataTypes.STRING,
    tmName: DataTypes.STRING,
    enTmName: DataTypes.STRING,
    askforId: DataTypes.STRING,
    sAskforId: DataTypes.STRING,
    askforDir: DataTypes.STRING,
    tmType: DataTypes.INTEGER,
    isDefer: DataTypes.INTEGER,
    askforDate: DataTypes.DATE,
    isCommonAskfor: DataTypes.INTEGER,
    isNeedEvidence: DataTypes.INTEGER,
    TODNum: DataTypes.STRING,
    caseType: DataTypes.STRING,
    caseStatus: DataTypes.STRING,
    rdDate: DataTypes.DATE,
    askforCompany: DataTypes.STRING,
    proxyName: DataTypes.STRING,
  }, {
    paranoid: true,
    underscored: true,
    timestamps: true,
    version: true,
    freezeTableName: true,
    tableName: 'trademarkcase'
  });
};
