14 lines
287 B
JavaScript

const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const dailyDataSchema = new Schema({
'location_id': Number,
'date': Date,
'car_count': Number,
'year': Number,
'month': Number,
'day': Number
});
module.exports = mongoose.model('dailyData', dailyDataSchema);