{"size": 519, "ext": "js", "max_stars_repo_path": "backend/models/user.js", "max_stars_repo_name": "turkeyes/zoommaps", "max_stars_repo_stars_event_min_datetime": "2020-05-26T21:18:36.000Z", "max_stars_repo_stars_event_max_datetime": "2021-02-28T12:43:15.000Z", "max_issues_repo_path": "backend/models/user.js", "max_issues_repo_name": "turkeyes/zoommaps", "max_issues_repo_issues_event_min_datetime": "2020-06-15T18:22:59.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-10T17:39:08.000Z", "max_forks_repo_path": "backend/models/user.js", "max_forks_repo_name": "turkeyes/zoommaps", "max_forks_repo_forks_event_min_datetime": "2020-05-01T10:12:49.000Z", "max_forks_repo_forks_event_max_datetime": "2020-05-01T10:12:49.000Z"}
{"max_stars_count": 2, "max_issues_count": 5, "max_forks_count": 1, "avg_line_length": 23.5909090909, "max_line_length": 59, "alphanum_fraction": 0.7283236994}
const mongoose = require("mongoose");

const userSchema = mongoose.Schema({
  workerId: String,
  dataset: String,
  key: String,
  // survey answers for questions which are always included
  gender: String,
  ageGroup: String,
  ethnicity: [String],
  education: String,
  feedback: String,
  zoomUse: String,
  // answers to questions added by dataset
  endAnswers: mongoose.Schema.Types.Mixed,
  groupAnswers: mongoose.Schema.Types.Mixed
});

const User = mongoose.model("User", userSchema);

module.exports = User;
