obs-portal/models/TrackData.js

20 lines
459 B
JavaScript
Raw Normal View History

2020-08-14 10:43:57 +00:00
var mongoose = require('mongoose');
var TrackDataSchema = new mongoose.Schema({
//Date;Time;Latitude;Longitude;Course;Speed;Right;Left;Confirmed;insidePrivacyArea
points: [ {
date: String,
time : String,
latitude: Number,
longitude: Number,
course: Number,
speed: Number,
d1: Number,
d2: Number,
flag: Number,
private: Number
}]
}, {timestamps: true});
mongoose.model('TrackData', TrackDataSchema);