Haris Razis
4 years ago
1 changed files with 8 additions and 1 deletions
@ -1,2 +1,9 @@ |
|||||
const mongoose = require('mongoose'); |
const mongoose = require('mongoose'); |
||||
const {Schema} = mongoose; |
const {Schema} = mongoose; |
||||
|
|
||||
|
const userSchema = new Schema({ |
||||
|
username: String, |
||||
|
password: String |
||||
|
}); |
||||
|
|
||||
|
mongoose.model('User', userSchema); |
Loading…
Reference in new issue