|
@@ -4,9 +4,9 @@ const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
|
|
|
|
|
|
|
|
|
const OptlogSchema = {
|
|
|
- userid: { type: String, required: true, maxLength: 64 },
|
|
|
+ userid: { type: String, required: false, maxLength: 64 },
|
|
|
name: { type: String, required: false, maxLength: 200 },
|
|
|
- unitid: { type: String, required: true, maxLength: 64 },
|
|
|
+ unitid: { type: String, required: false, maxLength: 64 },
|
|
|
ip: { type: String, required: false, maxLength: 64 },
|
|
|
createtime: { type: String, required: false, maxLength: 20 },
|
|
|
type: { type: String, required: false, maxLength: 64 },
|