update:add ci cd files ==> do not edit those file
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
const mongoose = require('mongoose')
|
||||
|
||||
function image(img) {
|
||||
return '/uploads/images/galleryCover/' + img
|
||||
}
|
||||
function image2(img) {
|
||||
return '/uploads/images/galleryCover/thumb/' + img
|
||||
}
|
||||
const GalleryCategorySchema = mongoose.Schema({
|
||||
cover: {type: String, get: image},
|
||||
thumb: {type: String, get: image2},
|
||||
locale: {
|
||||
fa: {
|
||||
title: String,
|
||||
description: String
|
||||
},
|
||||
en: {
|
||||
title: String,
|
||||
description: String
|
||||
}
|
||||
},
|
||||
index : {type : Number , default : 1}
|
||||
})
|
||||
|
||||
module.exports = mongoose.model('GalleryCategory', GalleryCategorySchema)
|
||||
Reference in New Issue
Block a user