Festival.js
650 Bytes
const mongoose =require('mongoose');
const { Schema } =mongoose;
const festivalSchema = new Schema({
title: String,
addr: String,
tel: String,
contentid : Number,
mapx : Number,
mapy : Number,
eventstartdate : String,
eventenddate : String,
overview : String,
firstimage : String,
homepage : String,
weathers : String
// weather : {
// date1: { weather : String, temp : Number},
// date2: { weather : String, temp : Number},
// date3: { weather : String, temp : Number},
// }
},
{
versionKey: false
});
module.exports = mongoose.model('Festival',festivalSchema);