|
@@ -41,7 +41,7 @@ module.exports = (data) => {
|
|
}
|
|
}
|
|
columnStr += '}';
|
|
columnStr += '}';
|
|
const nameList = name.split('_');
|
|
const nameList = name.split('_');
|
|
- const modelName = nameList.map((i) => _.capitalize(i)).join('_');
|
|
|
|
|
|
+ const modelName = nameList.map((i) => _.upperFirst(_.capitalize(i))).join('_');
|
|
return `'use strict';
|
|
return `'use strict';
|
|
const Schema = require('mongoose').Schema;
|
|
const Schema = require('mongoose').Schema;
|
|
const metaPlugin = require('naf-framework-mongoose-free/lib/model/meta-plugin');
|
|
const metaPlugin = require('naf-framework-mongoose-free/lib/model/meta-plugin');
|