transfer project in github

This commit is contained in:
hamid.zarghami1@gmail.com
2024-05-12 15:29:27 +03:30
commit e644edbd65
348 changed files with 164991 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
const mongoose = require('mongoose')
const mongoosePaginate = require('mongoose-paginate-v2');
const MenuTypeSchema = mongoose.Schema({
name: String,
showOnWebSite: {type: Boolean, default: true},
branchId: {type: mongoose.ObjectId, ref: 'StoreInfo'},
isCafeMenu: {type: Boolean, default: false},
index: Number
})
MenuTypeSchema.plugin(mongoosePaginate);
module.exports = mongoose.model('MenuType', MenuTypeSchema)