module.exports = {
    mode: 'simple',
    modelCn: '教师管理',
    createInsertUser: {
        userMap: {
            userName: "teachername",
            loginName: "phone",
            realname: "teachername",
            sex: 0,
            strRoleId: 2,
            email: "",
            organId: null,
            isEmployee: 1,
            status: 1,
            isSuper: 0,
        },
    }, 
    fields: {
        teachernum: {
            type: 'string',
            comment: '工号',
            meta: {
                formType: 'input',
            },
        },
        teachername: {
            type: 'string',
            comment: '姓名',
            meta: {
                formType: 'input',
            },
        },
        level: {
            type: 'integer',
            comment: '职称',
            meta: {
                formType: 'select',
                chineseMap: {
                    1: '讲师',
                    2: '副教授',
                    3: '教授'
                }
            },
        },
        phone: {
            type: 'string',
            comment: '手机号码',
            meta: {
                formType: 'input',
            },
        },
        uid: {
            type: 'integer',
            comment: '关联用户',
            meta: {
                formType: 'input',
            },
            hidden: true,
            filter: true
        }
   
    },
    foreign: {},
    extendActions: {},
    primaryKey: 'id',
    middlewares: ['loginRequired'], // 该模型需要登录，权限认证
}