transfer project in github
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user