added user status and prediction user
This commit is contained in:
@ -7,7 +7,7 @@ const ModelSchema = new mongoose.Schema({
|
||||
name: String,
|
||||
url: String,
|
||||
label: String
|
||||
} ,{ _id : false })]
|
||||
} ,{ _id : true })]
|
||||
});
|
||||
|
||||
// changelog query helper
|
||||
|
@ -1,5 +1,6 @@
|
||||
import mongoose from 'mongoose';
|
||||
import db from '../db';
|
||||
import ModelModel from './model';
|
||||
|
||||
const UserSchema = new mongoose.Schema({
|
||||
name: {type: String, index: {unique: true}},
|
||||
@ -8,7 +9,9 @@ const UserSchema = new mongoose.Schema({
|
||||
key: String,
|
||||
level: String,
|
||||
location: String,
|
||||
devices: [String]
|
||||
devices: [String],
|
||||
models: [{type: mongoose.Schema.Types.ObjectId, ref: ModelModel}],
|
||||
status: String
|
||||
});
|
||||
|
||||
// changelog query helper
|
||||
|
Reference in New Issue
Block a user