initial commit

This commit is contained in:
2023-05-21 18:46:48 +02:00
commit 19772073ae
27 changed files with 17663 additions and 0 deletions

13
models/PMEntry.js Normal file
View File

@ -0,0 +1,13 @@
const mongoose = require( "mongoose" );
// PM2.5 = 2.10, PM10 = 5.30
const schema = new mongoose.Schema( {
pm25: { type: Number, required: true },
pm10:{ type: Number, required: true },
sensor_name: {type: String}
}, { timestamps: true } );
const Model = mongoose.model(
"PMEntry",
schema,
);
module.exports = Model;