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.

56 lines
879 B

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