/** * Created by Tony on 2016/12/23. */ let mongoose = require('mongoose'); let dbm = require("../../../config/db/db_manager"); let smartcostdb = dbm.getCfgConnection("Reports"); let Schema = mongoose.Schema; let StyleSchema = new Schema({ "ID" : String, "border_style" : Array }); let Style = smartcostdb.model("com_styles", StyleSchema, "com_styles"); let cfgCommonClass = require('./cfg_common'); class StyleDAO extends cfgCommonClass{ constructor(){ super(Style); }; }; module.exports = new StyleDAO();