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
+11
View File
@@ -0,0 +1,11 @@
const mongoose = require('mongoose')
const Cart_ItemSchema = mongoose.Schema({
user_id: {type: mongoose.ObjectId, ref: 'User'},
product_id: {type: mongoose.ObjectId, ref: 'Food'},
branchId: {type: mongoose.ObjectId, ref: 'StoreInfo'},
quantity: Number,
// createdAt : {type : Date , expires : 3600 , default : Date.now()}
})
module.exports = mongoose.model('CartItem', Cart_ItemSchema)