Update schema docs
parent
de05260298
commit
7c23c302c6
|
@ -46,7 +46,6 @@ Thumbs.db
|
|||
|
||||
# Internal Data
|
||||
/public/
|
||||
mongodb-data/
|
||||
server/resource/
|
||||
server/apib/dredd/data/tmp-resource
|
||||
backup/
|
||||
|
@ -59,4 +58,3 @@ backup/
|
|||
.cache/motd.legal-displayed
|
||||
.profile
|
||||
.ssh/
|
||||
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1,35 @@
|
|||
'use strict';
|
||||
|
||||
const mongoose = require('mongoose');
|
||||
const Schema = mongoose.Schema;
|
||||
|
||||
const LogServerFpsSchema = new Schema({
|
||||
war: {
|
||||
type: mongoose.Schema.Types.ObjectId,
|
||||
ref: 'War',
|
||||
required: true,
|
||||
},
|
||||
entityName: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
avgFps: [{
|
||||
type: Number,
|
||||
get: (v) => Math.round(v),
|
||||
set: (v) => Math.round(v),
|
||||
required: true,
|
||||
}],
|
||||
minFps: [{
|
||||
type: Number,
|
||||
get: (v) => Math.round(v),
|
||||
set: (v) => Math.round(v),
|
||||
required: true,
|
||||
}],
|
||||
}, {
|
||||
collection: 'logServerFps',
|
||||
versionKey: false
|
||||
});
|
||||
// optional more indices
|
||||
LogServerFpsSchema.index({war: 1});
|
||||
|
||||
module.exports = mongoose.model('LogServerFpsSchema', LogServerFpsSchema);
|
Loading…
Reference in New Issue