Skip to content

Instantly share code, notes, and snippets.

@pencilcheck
Created December 10, 2015 04:47
Show Gist options
  • Save pencilcheck/ea83f4268225b3e4359a to your computer and use it in GitHub Desktop.
Save pencilcheck/ea83f4268225b3e4359a to your computer and use it in GitHub Desktop.
userSchema = new Schema(
key: String
preferred_email: String
email: String
access_code: String
local:
email: String
password: String
name: String
seeker_profile_filled_at: Date
offerer_profile_filled_at: Date
company_profile_filled_at: Date
offerer_verified: Boolean
company_verified: Boolean
description: String
blurbs: [ {
type: Schema.Types.ObjectId
ref: 'Blurb'
} ]
experiences: [ {
company:
name: String
logo_url: String
description: String
job_title: String
month_start: Number
year_start:
type: Number
required: true
month_end: Number
year_end: Number
is_current:
type: Boolean
required: true
} ]
skills: [ {
title: String
years_of_experience:
type: Number
default: 0
} ]
likes: [ {
type: Schema.Types.ObjectId
ref: 'User'
} ]
mentors: [ {
name: String
}]
educations: [ {
degree: String
major: String
school: String
year: Number
gpa: Number
} ]
organizations: [ {
name: String
paying: Boolean
date_issued: Date
expiration_date: Date
} ]
posting_companies: [ {
type: Schema.Types.ObjectId
ref: 'Company'
} ]
desired_salary: Number
desired_work_location: Schema.Types.Mixed
desired_work_roles: [ {
type: String
unique: true
required: true
dropDups: true
} ]
meeting_preference: Number
avatar_url:
type: String
default: 'assets/images/avatars/default.png'
resume_url: String
linkedin:
id: String
token: String
facebook_token: String
privacy_blur_avatar:
type: Boolean
default: false
privacy_hide_last_name:
type: Boolean
default: false
privacy_hide_current_company:
type: Boolean
default: false
privacy_hide_second_company:
type: Boolean
default: false
privacy_hide_educations:
type: Boolean
default: false
connection_requirement:
questions: [ String ]
skills: [ {
title: String
years_of_experience: Number
} ]
filters: [ {
attribute: String
comparator: String
value: []
} ]
contact_preferences: [ {
title: String
interval: Number
} ]
signup_referral_token: String
signup_referrer:
type: Schema.Types.ObjectId
ref: 'User'
areas_of_interest: [String]
zip_code: Number
cpe_credits: Number
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment