|
@@ -0,0 +1,22 @@
|
|
|
+/**
|
|
|
+ * Created by Tony on 2017/7/11.
|
|
|
+ */
|
|
|
+let mongoose = require('mongoose');
|
|
|
+let dbm = require("../../../config/db/db_manager");
|
|
|
+let smartcostdb = dbm.getCfgConnection("scConstruct");
|
|
|
+let MapFieldSchema = new mongoose.Schema({
|
|
|
+ "fieldMapGrpName" : String,
|
|
|
+ "dispName": String,
|
|
|
+ "remark" : String,
|
|
|
+ "seq" : Number,
|
|
|
+ "items" : [{
|
|
|
+ mapId: Number,
|
|
|
+ dispName: String,
|
|
|
+ mapExpression: String,
|
|
|
+ descr: String
|
|
|
+ }]
|
|
|
+});
|
|
|
+
|
|
|
+let Rpt_Map_Field_Mdl = smartcostdb.model("rpt_mapping_field", MapFieldSchema, "rpt_mapping_field");
|
|
|
+
|
|
|
+module.exports = Rpt_Map_Field_Mdl;
|