public profile accessible and start updating form
This commit is contained in:
@ -6,6 +6,7 @@ var userSchema = new mongoose.Schema({
|
||||
email: {
|
||||
type: String,
|
||||
lowercase: true,
|
||||
unique: true,
|
||||
trim: true
|
||||
},
|
||||
password: String,
|
||||
@ -13,7 +14,6 @@ var userSchema = new mongoose.Schema({
|
||||
twitter: String,
|
||||
google: String,
|
||||
github: String,
|
||||
instagram: String,
|
||||
linkedin: String,
|
||||
tokens: Array,
|
||||
points: {
|
||||
@ -264,6 +264,13 @@ var userSchema = new mongoose.Schema({
|
||||
}
|
||||
},
|
||||
profile: {
|
||||
username: {
|
||||
type: String,
|
||||
default: '',
|
||||
unique: true,
|
||||
lowercase: true,
|
||||
trim: true
|
||||
},
|
||||
name: {
|
||||
type: String, default: ''
|
||||
},
|
||||
@ -273,23 +280,59 @@ var userSchema = new mongoose.Schema({
|
||||
location: {
|
||||
type: String, default: ''
|
||||
},
|
||||
website: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
picture: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
username: {
|
||||
linkedinProfile: {
|
||||
type: String, default: ''
|
||||
},
|
||||
githubProfile: {
|
||||
type: String, default: ''
|
||||
},
|
||||
coderbyteProfile: {
|
||||
type: String,
|
||||
default: '',
|
||||
//unique: true,
|
||||
lowercase: true,
|
||||
trim: true
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
portfolio: {
|
||||
website1Link: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
website1Title: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
website1Image: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
website2Link: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
website2Title: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
website2Image: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
website3Link: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
website3Title: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
website3Image: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
|
||||
resetPasswordToken: String,
|
||||
resetPasswordExpires: Date
|
||||
});
|
||||
|
Reference in New Issue
Block a user