added animations and pageLoad and preLoader
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
const mongoose = require('mongoose')
|
||||
|
||||
function image(img) {
|
||||
return '/uploads/images/history/' + img
|
||||
}
|
||||
|
||||
const HistorySchema = mongoose.Schema({
|
||||
image: {type: String, get: image},
|
||||
year: Number,
|
||||
history_details: {
|
||||
fa: {
|
||||
title: String,
|
||||
caption: String
|
||||
},
|
||||
en: {
|
||||
title: String,
|
||||
caption: String
|
||||
}
|
||||
},
|
||||
created_at: String,
|
||||
updated_at: String
|
||||
}, {
|
||||
toObject: {getters: true},
|
||||
toJSON: {getters: true}
|
||||
})
|
||||
|
||||
module.exports = mongoose.model('History', HistorySchema)
|
||||
Reference in New Issue
Block a user