/* jshint indent: 2 */

module.exports = function (sequelize, DataTypes) {
  return sequelize.define('applicant', {
    region: DataTypes.STRING,
    regionCode: DataTypes.STRING,
    idCard: DataTypes.STRING,
    companyName: DataTypes.STRING,
    companyNameEn: DataTypes.STRING,
    companyAddr: DataTypes.STRING,
    companyAddrEn: DataTypes.STRING,
    contactsName: DataTypes.STRING,
    contactsAddr: DataTypes.STRING,
    contactsMobileNum: DataTypes.STRING,
    mail: DataTypes.STRING,
    mailCode: DataTypes.STRING,
    caseId: DataTypes.STRING,
  }, {
    paranoid: true,
    underscored: true,
    timestamps: true,
    version: true,
    freezeTableName: true,
    tableName: 'applicant'
  });
};
