You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
306 B

const mongoose = require('mongoose')
const adminSchema = new mongoose.Schema({
email: {
type: String,
required: true,
unique: true,
lowercase: true
},
password: {
type: String,
required: true
}
})
const Admin = mongoose.model('Admin', adminSchema)
module.exports = Admin