Added clock stuff

This commit is contained in:
Dobie Wollert
2014-09-14 06:43:04 -04:00
parent ca587764cd
commit b949f6ff90
12 changed files with 384 additions and 4 deletions

14
app/model/clock.js Normal file
View 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);