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

@@ -2,6 +2,7 @@ import { Document } from 'mongoose';
import { IUser } from '../user/user.interface';
export interface IPhone extends Document {
androidId: String,
displayName: String,
modelName: String,
operatingSystem: String,

View File

@@ -1,12 +1,13 @@
import { Schema } from 'mongoose';
import { Mongoose, Schema, SchemaType, SchemaTypes } from 'mongoose';
import { User } from '../user/user.model';
const schemaPhone = new Schema({
androidId: { type: String, required: true },
displayName: { type: String, required: true },
modelName: { type: String, required: false },
operatingSystem: { type: String, required: false },
architecture: { type: String, required: false },
user: { type: User, required: true }
user: { type: SchemaTypes.ObjectId, required: true }
}, {
timestamps: {
createdAt: true,