Lee SeJin

Update User model

...@@ -4,10 +4,13 @@ const UserSchema = new mongoose.Schema({ ...@@ -4,10 +4,13 @@ const UserSchema = new mongoose.Schema({
4 name: { 4 name: {
5 type: String, 5 type: String,
6 trim: true, 6 trim: true,
7 + sparse: true
7 }, 8 },
8 email: { 9 email: {
9 type: String, 10 type: String,
10 - trim: true 11 + trim: true,
12 + unique: true,
13 + sparse: true
11 }, 14 },
12 avatarUrl: String, 15 avatarUrl: String,
13 githubId: { 16 githubId: {
......