Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},
id:String,
user:{
type:mongoose.Schema.ObjectId,
ref:"User"
}
},{
timestamps:true,
minimize: false
});
model.configOutputField(null,[
"createdAt",
"updatedAt"
]);
var dbManage=db.model("Test",model);
mongoomise.promisifyAll(dbManage,require("bluebird"));
module.exports=dbManage;
type:Number,
default:0
},
public:{
type:Number,
default:0
}
},{
timestamps:true
});
model.configOutputField(null,[
"createdAt",
"updatedAt"
]);
var dbManage=db.model("DocProject",model);
mongoomise.promisifyAll(dbManage,require("bluebird"));
module.exports=dbManage;
default:","
},
contentParam:{
type:String,
default:""
}
}
},{
timestamps:true
});
model.configOutputField(null,[
"createdAt",
"updatedAt"
]);
var dbManage=db.model("Poll",model);
mongoomise.promisifyAll(dbManage,require("bluebird"));
module.exports=dbManage;
default:""
},
authDb:{
type:String,
default:""
}
}
},{
timestamps:true
});
model.configOutputField(null,[
"createdAt",
"updatedAt"
]);
var dbManage=db.model("Info",model);
mongoomise.promisifyAll(dbManage,require("bluebird"));
module.exports=dbManage;
default:0 //0 普通 1 回收站
},
id:String,
parent:String,
delete:Number,
sort:{
type:Number,
default:0
},
remark:String
},{
timestamps:true
});
var dbManage=db.model("Group",model);
mongoomise.promisifyAll(dbManage,require("bluebird"));
module.exports=dbManage;