Livebeat is now able to send, store and show beats

This commit is contained in:
2020-10-23 00:39:36 +02:00
parent f722ee9595
commit 13f8437f29
52 changed files with 1948 additions and 442 deletions

View File

@@ -0,0 +1,16 @@
import { Schema, SchemaTypes } from 'mongoose';
import { Phone } from '../phone/phone.model';
const schemaBeat = new Schema({
coordinate: { type: [Number], required: false },
accuracy: { type: Number, required: false },
speed: { type: Number, required: false },
battery: { type: Number, required: false },
phone: { type: SchemaTypes.ObjectId, required: true, default: 'user' }
}, {
timestamps: {
createdAt: true
}
});
export { schemaBeat };