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);