Pārlūkot izejas kodu

User model minor changes

pull/16/head
Djordje Djoric pirms 3 gadiem
vecāks
revīzija
1e2890a7c5
1 mainītis faili ar 4 papildinājumiem un 3 dzēšanām
  1. 4
    3
      src/models/user.js

+ 4
- 3
src/models/user.js Parādīt failu

@@ -9,15 +9,16 @@ const userSchema = new mongoose.Schema({
type: String
},
email: {
type: String
type: String,
required: true
},
password: {
type: String
type: String,
required: true
},
tokens: [{
token: {
type: String,
required: true
}
}]
})

Notiek ielāde…
Atcelt
Saglabāt