blob: 3751aae12a749024e9bb302911f8b525d4e5cf32 (
plain) (
tree)
|
|
const mongoose = require('mongoose');
const userSchema = new mongoose.Schema({
firstname: {type: String, required: true},
lastname: {type: String, required: true},
email: {type: String, required: true},
password: {type: String, required: true},
});
const userModel = new mongoose.model('user', userSchema);
module.exports = userModel;
|