blob: 6773c641a62d3383432c3af20c9b00fb760eb4c0 (
plain) (
tree)
|
|
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);
|