dicData.js 516 B

1234567891011121314151617
  1. /**
  2. * 字典数据表
  3. */
  4. var mongoose = require("./mongodb");
  5. var Schema = mongoose.Schema;
  6. var dicDataSchema = new Schema(
  7. {
  8. dict_value:{type:String},//字典表的值 来自dic
  9. dictdata_name:{type:String,default:''},//字典名字
  10. dictdata_value:{type:String,unique:true},//字典值
  11. locked:{type:Number,default:0},//是否锁定 默认0不锁定,1锁定不可修改
  12. })
  13. var dicData = mongoose.model('dicData',
  14. dicDataSchema,'t_dicData');
  15. module.exports = dicData;