Strona działa najlepiej z włączonym JavaScript.
Strona główna
Odkrywaj
Pomoc
Zarejestruj się
Zaloguj się
stefan.stamenovic
/
diligent-node-api
Obserwuj
2
Gwiazdka
0
Forkuj
0
Kod
Problemy
0
Pull Requests
0
Wydania
0
Wiki
Aktywność
Przeglądaj źródła
User model minor changes
pull/16/head
Djordje Djoric
3 lat temu
rodzic
4ce06e06f8
commit
1e2890a7c5
1 zmienionych plików
z
4 dodań
i
3 usunięć
Widok podzielony
Pokaż statystyki zmian
4
3
src/models/user.js
+ 4
- 3
src/models/user.js
Wyświetl plik
@@ -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
}
}]
})
Napisz
Podgląd
Ładowanie…
Anuluj
Zapisz