Festival.js 652 Bytes
const mongoose =require('mongoose');
const { Schema } =mongoose;

const festivalSchema = new Schema({
    title: String,
    addr: String,
    tel: String,
    mapx : Number,
    mapy : Number,
    eventstartdate : String,
    eventenddate : String,
    overview : String,
    firstimage : String,
    homepage : String,
    temparature : Number,
    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);