Create analytic.model.js (#13)
This commit is contained in:
70
schema/analytic.model.js
Normal file
70
schema/analytic.model.js
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
const mongoose = require('mongoose');
|
||||||
|
const Schema = mongoose.Schema;
|
||||||
|
|
||||||
|
// Database schema for an email message
|
||||||
|
let AnalyticData = new Schema({
|
||||||
|
date: {
|
||||||
|
type: Date
|
||||||
|
},
|
||||||
|
viewCount: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
articleViewCounts: {
|
||||||
|
type: Array
|
||||||
|
},
|
||||||
|
systemTime: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
systemUptime: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
systemCPUBrand: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
systemCPUSpeed: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
systemCPUSpeedMax: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
systemCPUCores: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
systemCPUAverage: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
systemCPUTemperature: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
systemMemoryTotal: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
systemMemoryUsed: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
systemSwapTotal: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
systemSwapUsed: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
systemOSPlatform: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
systemOSDistro: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
systemOSRelease: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
systemOSKernel: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
systemCurrentLoad: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
}, {
|
||||||
|
collection: 'categories'
|
||||||
|
});
|
||||||
|
|
||||||
|
module.exports = mongoose.model('AnalyticData', AnalyticData);
|
||||||
Reference in New Issue
Block a user