update:add ci cd files ==> do not edit those file

This commit is contained in:
mahyargdz
2024-10-10 21:49:00 +03:30
parent 6fe34708a2
commit 8cf0492c87
464 changed files with 79533 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
const mongoose = require('mongoose')
function file(file) {
return '/uploads/catalogs/file/' + file
}
function cover(img) {
return '/uploads/catalogs/cover/' + img
}
const CatalogSchema = mongoose.Schema({
locale: {
fa: {
title: String
},
en: {
title: String
}
},
file: {type: String, get: file},
cover: {type: String, get: cover},
showInFa: {type: Boolean, default: false},
showInEn: {type: Boolean, default: false}
})
module.exports = mongoose.model('Catalog', CatalogSchema)