|
@@ -1,4 +1,5 @@
|
|
|
'use strict';
|
|
|
+const moment = require('moment');
|
|
|
const Schema = require('mongoose').Schema;
|
|
|
const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
|
|
|
|
|
@@ -16,6 +17,7 @@ const TopSchema = {
|
|
|
mem: { type: String, required: false },
|
|
|
time: { type: String, required: false, maxLength: 100 },
|
|
|
command: { type: String, required: false, maxLength: 100 },
|
|
|
+ date: { type: String, required: false, maxLength: 100, default: moment().format('YYYY-MM-DD') },
|
|
|
};
|
|
|
|
|
|
|