'use strict'; const Schema = require('mongoose').Schema; const SchemaDefine = { roleCode: { type: String, required: true }, userId: { type: String, required: true }, }; const schema = new Schema(SchemaDefine); module.exports = app => { const { mongoose } = app; return mongoose.model('userBindRole', schema, 'userBindRole'); };