const mongoose = require('mongoose') const Schema = mongoose.Schema; const ObjectId = Schema.Types.ObjectId; const storeschema = new mongoose.Schema({ name: { type: String, required: true, }, email: { type: String, required: true, unique: true, lowercase: true }, phone1: { type: String, default: false, }, phone2: { type: String, default: false, }, city: { type: String, required: true, }, team:{ type:String }, location: { type:String, default: false, }, picture: { type: String }, manager:{ type: String, default:false, }, password: { type: String}, }); const Store = mongoose.model("Store", storeschema); module.exports = { Store};