update:add ci cd files ==> do not edit those file
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
const mongoose = require('mongoose')
|
||||
|
||||
function image(img) {
|
||||
if (img) return '/uploads/images/customer/' + img
|
||||
}
|
||||
|
||||
const CustomerCommentSchema = mongoose.Schema({
|
||||
locale: {
|
||||
fa: {
|
||||
name: String,
|
||||
position: String,
|
||||
comment: String
|
||||
},
|
||||
en: {
|
||||
name: String,
|
||||
position: String,
|
||||
comment: String
|
||||
}
|
||||
},
|
||||
image: {type: String, get: image}
|
||||
})
|
||||
|
||||
module.exports = mongoose.model('CustomerComment', CustomerCommentSchema)
|
||||
Reference in New Issue
Block a user