/* jshint indent: 2 */

module.exports = function (sequelize, DataTypes) {
  return sequelize.define('tmrejaskcase', {
    schemeNumber: 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,
    recDate: DataTypes.DATE,
    askforDate: DataTypes.DATE,
    v_noticeDate: DataTypes.DATE,
    v_applicantName: DataTypes.STRING,
    caStatus: DataTypes.STRING,
    rejStatus: DataTypes.STRING,
    schemeId: DataTypes.INTEGER,
  }, {
    paranoid: true,
    underscored: true,
    timestamps: true,
    version: true,
    freezeTableName: true,
    tableName: 'tmrejask_case'
  });
};
