forked from UKSOURCE/cms.hailearning.edu.vn
76 lines
1.3 KiB
JavaScript
76 lines
1.3 KiB
JavaScript
const mongoose = require("mongoose");
|
|
|
|
// Schema cho hero section
|
|
const safetySchema = new mongoose.Schema(
|
|
{
|
|
//hero section
|
|
hero: {
|
|
banner: String,
|
|
title: String,
|
|
},
|
|
|
|
//approach section
|
|
approach: {
|
|
badge: String,
|
|
title:String,
|
|
description:String,
|
|
imgs:{
|
|
img1:String,
|
|
img2:String
|
|
},
|
|
stats:{
|
|
count:String,
|
|
label:String,
|
|
avatars:[String]
|
|
},
|
|
features:[
|
|
{text:String}
|
|
],
|
|
cards: [
|
|
{
|
|
title: String,
|
|
content: String,
|
|
},
|
|
],
|
|
},
|
|
|
|
//philosophy section
|
|
philosophy: {
|
|
title: String,
|
|
subtitle: String,
|
|
cards: [
|
|
{
|
|
title: String,
|
|
content: String,
|
|
author: {
|
|
avt: String,
|
|
name: String,
|
|
role: String,
|
|
rating: String,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
|
|
//security section
|
|
security: {
|
|
title: String,
|
|
subtitle: String,
|
|
cards: [
|
|
{
|
|
title: String,
|
|
content: String,
|
|
author: {
|
|
avt: String,
|
|
name: String,
|
|
role: String,
|
|
rating: String,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
},
|
|
{ timestamps: true }
|
|
);
|
|
|
|
module.exports = mongoose.model("Safety", safetySchema); |