Skip to content

Instantly share code, notes, and snippets.

@liorkesos
Created May 7, 2019 11:11
Show Gist options
  • Save liorkesos/de5fb4892c7fce7b85e381b597f9a57f to your computer and use it in GitHub Desktop.
Save liorkesos/de5fb4892c7fce7b85e381b597f9a57f to your computer and use it in GitHub Desktop.
{
onboardingStep: {
type: Number,
default: 0
},
whatAreYou: {
type: String,
default: 'Freelancer'
},
whatYouDo: String,
firstName: String,
lastName: String,
agencyName: String,
members: String,
avatar: String,
description: String,
languages: [{
language: String,
proficiency: String
}],
budget: String,
hourlyRate: Number,
projectPrice: Number,
websiteUrl: String,
phone: String,
streetAndNumber: String,
city: String,
country: String,
networks: [{
name: String,
value: String
}],
bio: String,
designer: {
type: Number,
default: 33
},
marketer: {
type: Number,
default: 33
},
developer: {
type: Number,
default: 33
},
skills: [{
id: String,
parent: String
}],
email: {
type: String,
validate: {
validator: validator.isEmail,
message: 'EMAIL_IS_NOT_VALID'
},
unique: true,
required: true
},
portFolio: [{
title: String,
description: String,
media: Array
}],
// password: {
// type: String,
// required: true,
// },
created_at: {
type: Date,
default: Date.now
},
role: {
type: String,
enum: ['user', 'admin'],
default: 'user'
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment