forked from UKSOURCE/cms.hailearning.edu.vn
46 lines
844 B
JavaScript
46 lines
844 B
JavaScript
const mongoose = require("mongoose");
|
|
|
|
const travelSchema = new mongoose.Schema(
|
|
{
|
|
page: {
|
|
title: {
|
|
type: String,
|
|
default: "Travel Information",
|
|
},
|
|
description: {
|
|
type: String,
|
|
default: "",
|
|
},
|
|
year: {
|
|
type: String,
|
|
default: "",
|
|
},
|
|
metadata: {
|
|
title: String,
|
|
description: String,
|
|
},
|
|
},
|
|
hero: {
|
|
title: {
|
|
type: String,
|
|
default: "Travel Information",
|
|
},
|
|
backgroundImage: {
|
|
type: String,
|
|
default: "",
|
|
},
|
|
},
|
|
content: {
|
|
type: mongoose.Schema.Types.Mixed,
|
|
default: { blocks: [] },
|
|
},
|
|
enableScrollspy: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
},
|
|
{ timestamps: true }
|
|
);
|
|
|
|
module.exports = mongoose.model("Travel", travelSchema);
|