const mongoose = require('mongoose'); const conString = 'mongodb://127.0.0.1:27017/emp'; mongoose.connect(conString); const employeeSchema = new mongoose.Schema({ name: { type: String, required: true }, city: { type: String, required: true }, salary: { type: Number, required: true } }); const userSchema = new mongoose.Schema({ username: { type: String, required: true }, email: { type: String, required: true }, password: { type: String, required: true }, }); const Employee = mongoose.model('Employee', employeeSchema); const User = mongoose.model('User', userSchema); module.exports = { Employee, User };