update:add ci cd files ==> do not edit those file
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
const mongoose = require('mongoose')
|
||||
|
||||
function image(img) {
|
||||
return '/uploads/images/team/' + img
|
||||
}
|
||||
|
||||
const TeamSchema = mongoose.Schema({
|
||||
locale: {
|
||||
fa: {
|
||||
first_name: String,
|
||||
last_name: String,
|
||||
position: String
|
||||
},
|
||||
en: {
|
||||
first_name: String,
|
||||
last_name: String,
|
||||
position: String
|
||||
}
|
||||
},
|
||||
image: {type: String, get: image},
|
||||
index: Number
|
||||
})
|
||||
|
||||
module.exports = mongoose.model('Team', TeamSchema)
|
||||
Reference in New Issue
Block a user