agmission/Development/server/model/location_cache.js

9 lines
301 B
JavaScript

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