Initial Version

This commit is contained in:
Ruslan845
2026-03-10 03:45:00 +09:00
commit 2c4fc7f933
128 changed files with 7617 additions and 0 deletions

19
server/models/Banner.js Normal file
View File

@@ -0,0 +1,19 @@
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const bannerSchema = mongoose.Schema({
bannerPhoto :{
type:String
},
link: {
type: String
},
product: {
type: Schema.Types.ObjectId,
ref: 'product'
},
isDeleted: {
type: Date,
default: null
},
}, { timestamps: true });
module.exports = mongoose.model('banner', bannerSchema);