module.exports = function (sequelize, DataTypes) {
  return sequelize.define('trademarkcase', {
    caseId: DataTypes.STRING,
    orderId: DataTypes.STRING,
    askforId: DataTypes.STRING,
    tradeType: DataTypes.STRING,
    tradeImg: DataTypes.STRING,
    tradeStatus: DataTypes.STRING,
    returnReason: DataTypes.STRING,
    usccode: DataTypes.STRING,
    agentName: DataTypes.STRING,
    trademarkRejInfo: DataTypes.JSON,
    applicant: DataTypes.JSON,
    askForData: DataTypes.JSON,
    supData: DataTypes.JSON,
    offical: DataTypes.JSON,
    v_noticeDate: DataTypes.DATE,
    v_applicantName: DataTypes.STRING,
    recDate: DataTypes.DATE,
    askforDate: DataTypes.DATE,
    caStatus: DataTypes.STRING,
    rejStatus: DataTypes.STRING
  }, {
    paranoid: true,
    underscored: true,
    timestamps: true,
    version: true,
    freezeTableName: true,
    tableName: 'trademarkcase'
  });
};