dic.js 433 B

1234567891011121314151617
  1. /**
  2. * 字典表
  3. */
  4. var mongoose = require("./mongodb");
  5. var Schema = mongoose.Schema;
  6. var dicSchema = new Schema(
  7. {
  8. dict_name:{type:String,default:''},//字典名字
  9. dict_value:{type:String,unique:true,default:''},//字典值
  10. platformType:{type:Number},//1市级 2 企业
  11. dictdata_use:{type:Number},//启用
  12. })
  13. var dic = mongoose.model('dic',
  14. dicSchema,'t_dic');
  15. module.exports = dic;