Files
opensprinkler-weather/models/Cache.js
2015-07-02 19:19:56 -05:00

15 lines
410 B
JavaScript

var mongoose = require( "mongoose" );
var cacheSchema = new mongoose.Schema( {
// Stores the current GPS location as unique for weather data cache
location: { type: String, unique: true },
// This is the end of day value for the humidity yesterday
yesterdayHumidity: Number,
currentHumidityTotal: Number,
currentHumidityCount: Number
} );
module.exports = mongoose.model( "Cache", cacheSchema );