1234567891011121314151617 |
- /**
- * 字典数据表
- */
- var mongoose = require("./mongodb");
- var Schema = mongoose.Schema;
- var dicDataSchema = new Schema(
- {
- dict_value:{type:String},//字典表的值 来自dic
- dictdata_name:{type:String,default:''},//字典名字
- dictdata_value:{type:String,unique:true},//字典值
- locked:{type:Number,default:0},//是否锁定 默认0不锁定,1锁定不可修改
- })
- var dicData = mongoose.model('dicData',
- dicDataSchema,'t_dicData');
- module.exports = dicData;
|