feat: add ci cd files dont edit those files
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
const mongoose = require('mongoose');
|
||||
|
||||
function image(img) {
|
||||
if (img) return '/uploads/images/mainCover/' + img
|
||||
}
|
||||
|
||||
const YearBannerSchema = mongoose.Schema({
|
||||
mainCover: {type: String, get: image, default: null},
|
||||
iranFlag: {type: Boolean, default: true},
|
||||
// electionBtn
|
||||
electionBtn: {type: Boolean, default: true},
|
||||
// social links
|
||||
hasEmail: {type: Boolean, default: true},
|
||||
hasGPlus: {type: Boolean, default: true},
|
||||
hasTweeter: {type: Boolean, default: true},
|
||||
hasInstagram: {type: Boolean, default: true},
|
||||
email: {type: String, default: ''},
|
||||
gPlus: {type: String, default: ''},
|
||||
tweeter: {type: String, default: ''},
|
||||
instagram: {type: String, default: ''},
|
||||
// textCover : {type : String , default : null},
|
||||
_updatedBy: {type: mongoose.Schema.Types.ObjectId, ref: 'User'},
|
||||
});
|
||||
|
||||
|
||||
module.exports = mongoose.model('YearBanner', YearBannerSchema);
|
||||
Reference in New Issue
Block a user