cfg_style.js 536 B

12345678910111213141516171819202122
  1. /**
  2. * Created by Tony on 2016/12/23.
  3. */
  4. let mongoose = require('mongoose');
  5. let dbm = require("../../../config/db/db_manager");
  6. let smartcostdb = dbm.getCfgConnection("Reports");
  7. let Schema = mongoose.Schema;
  8. let StyleSchema = new Schema({
  9. "ID" : String,
  10. "border_style" : Array
  11. });
  12. let Style = smartcostdb.model("com_styles", StyleSchema, "com_styles");
  13. let cfgCommonClass = require('./cfg_common');
  14. class StyleDAO extends cfgCommonClass{
  15. constructor(){
  16. super(Style);
  17. };
  18. };
  19. module.exports = new StyleDAO();