mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
15 lines
328 B
JavaScript
15 lines
328 B
JavaScript
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);
|