aboutsummaryrefslogtreecommitdiffstats
path: root/server/models/User.js
blob: 968673ee40e4a5c2c1a1e6651572d077638fdada (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const mongoose = require('mongoose');

const UserSchema = new mongoose.Schema({
  email: {
    type: String,
    required: true,
    unique: true,
  },
  password: {
    type: String,
    required: true,
  },
});

module.exports = mongoose.model('User', UserSchema);