123456789101112131415 |
- 'use strict';
- module.exports = app => {
- const mongoose = app.mongoose;
- const Schema = mongoose.Schema;
- const SysDeptSchema = new Schema({
- name: { type: String },
- fid: { type: String },
- code: { type: String },
- order: { type: Number },
- level: { type: String },
- });
- return mongoose.model('sysDept', SysDeptSchema, 'sys_dept');
- };
|