forked from UKSOURCE/cms.hailearning.edu.vn
first commit
This commit is contained in:
76
models/safety.js
Normal file
76
models/safety.js
Normal file
@@ -0,0 +1,76 @@
|
||||
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);
|
||||
Reference in New Issue
Block a user