Browse Source

Add User model

main
Haris Razis 4 years ago
parent
commit
5e93fd3920
No known key found for this signature in database GPG Key ID: 86A4D290ED03FAB4
  1. 9
      server/models/User.js

9
server/models/User.js

@ -1,2 +1,9 @@
const mongoose = require('mongoose');
const {Schema} = mongoose;
const {Schema} = mongoose;
const userSchema = new Schema({
username: String,
password: String
});
mongoose.model('User', userSchema);
Loading…
Cancel
Save