mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
Added clock stuff
This commit is contained in:
14
app/model/clock.js
Normal file
14
app/model/clock.js
Normal file
@ -0,0 +1,14 @@
|
||||
var mongoose = require('mongoose'),
|
||||
Schema = mongoose.Schema,
|
||||
ObjectId = Schema.ObjectId;
|
||||
|
||||
var clockSchema = new Schema({
|
||||
_id: String,
|
||||
tech: { type: ObjectId, ref: 'User' },
|
||||
dt: Date,
|
||||
action: String,
|
||||
lat: Number,
|
||||
long: Number
|
||||
}, { versionKey: false })
|
||||
|
||||
var Clock = module.exports = mongoose.model('Clock', clockSchema);
|
Reference in New Issue
Block a user