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