{"size": 393, "ext": "js", "max_stars_repo_path": "models/visit.js", "max_stars_repo_name": "DavidAJMP/landing-api", "max_stars_repo_stars_event_min_datetime": "2020-07-23T16:33:58.000Z", "max_stars_repo_stars_event_max_datetime": "2020-07-23T16:33:58.000Z", "max_issues_repo_path": "models/visit.js", "max_issues_repo_name": "DavidAJMP/landing-api", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "models/visit.js", "max_forks_repo_name": "DavidAJMP/landing-api", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.65, "max_line_length": 49, "alphanum_fraction": 0.572519084}
'use strict';
module.exports = function(sequelize, DataTypes) {
  var Visit = sequelize.define('Visit', {
    ip: {
      type: DataTypes.STRING,
      allowNull: false
    },
    location: {
      type: DataTypes.STRING,
      allowNull: true
    }
  }, {
    classMethods: {
      associate: function(models) {
        Visit.belongsTo(models.Campaign);
      }
    }
  });
  return Visit;
};