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