summaryrefslogtreecommitdiff
path: root/src/services/users/user.schema.js
blob: f2c98ef6b5bf93fd889fab27beb530a08544d8ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const { Schema } = require('mongoose');

module.exports = new Schema({
  username: {
    type: String,
    unique: true,
    required: true
  },
  password: {
    type: String,
    required: true
  }
}, { timestamps: true });