const mongoose = require('mongoose'); const location = require('./common').location; module.exports = mongoose.model('LoctionCache', new mongoose.Schema( Object.assign({ unitId: { type: String, require: true }, updatedAt: { type: Date } }, location), { collection: 'location_cache' }));