From fcb2524c97215e56e1a6f38314db57cacd84980f Mon Sep 17 00:00:00 2001 From: root Date: Fri, 14 Aug 2020 12:43:57 +0200 Subject: [PATCH] added missing file --- models/TrackData.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 models/TrackData.js diff --git a/models/TrackData.js b/models/TrackData.js new file mode 100644 index 0000000..63a1dbf --- /dev/null +++ b/models/TrackData.js @@ -0,0 +1,19 @@ +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);