1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-11 10:22:53 +00:00
Files
mywebsite/models/temperature.js

11 lines
240 B
JavaScript

var mongoose = require('mongoose');
var temperatureSchema = new mongoose.Schema({
temperature: String,
humidity: String,
location: String,
updated: {type: Date, default: Date.now}
});
mongoose.model('temperature', temperatureSchema);