9 lines
301 B
JavaScript
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' })); |