aboutsummaryrefslogblamecommitdiffstats
path: root/server/models/User.js
blob: 6773c641a62d3383432c3af20c9b00fb760eb4c0 (plain) (tree)
1
2
3
4
5
6
7






                                                                 
const mongoose = require('mongoose');
const UserSchema = new mongoose.Schema({
	username: { type: String, reauired: true, unique: true },
	password: { type: String, required: true },
	role: { type: String, default: 'admin' },
});
module.exports = mongoose.model('User', UserSchema);