15 lines
307 B
JavaScript
15 lines
307 B
JavaScript
const mongoose = require('mongoose');
|
|
const Schema = mongoose.Schema;
|
|
|
|
const hourlyDataSchema = new Schema({
|
|
'location_id': Number,
|
|
'date': Date,
|
|
'car_count': Number,
|
|
'hour': Number,
|
|
'day': Number,
|
|
'month': Number,
|
|
'year': Number
|
|
});
|
|
|
|
module.exports = mongoose.model('hourlyData', hourlyDataSchema);
|