Livebeat is now able to send, store and show beats
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user