feat(about): sync FE-BE data and image upload

This commit is contained in:
2026-02-06 01:58:56 +07:00
parent fb8676879d
commit 8232a36e71
16 changed files with 1096 additions and 2821 deletions
-64
View File
@@ -1,64 +0,0 @@
const mongoose = require('mongoose');
const aboutSchema = new mongoose.Schema({
banner: {
image: String,
title: String,
text: String
},
about: {
title: String,
paragraphs: [String],
list_items: [String],
button: {
text: String,
url: String
},
image: String,
quote: {
mark_image: String,
title: String,
text: String,
author: String
}
},
values: {
background_image: String,
items: [{
icon: String,
title: String,
text: String
}]
},
education: {
images: {
student1: String,
student2: String
},
subtitle: String,
title: String,
text: String
},
advantages: {
title: String,
items: [{
number: String,
title: String,
text: String
}]
},
academic_board: {
title: String,
members: [{
image: String,
title: String,
name: String,
color: String
}]
},
updatedAt: Date
}, {
timestamps: true
});
module.exports = mongoose.model('About', aboutSchema);