1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-11 18:32:50 +00:00
Files
mywebsite/models/temperature.js
2015-08-31 20:35:55 -05:00

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);