module.exports = {
    // 考试管理
    mode: 'simple',
    modelCn: '',
    autoInsertUser: true,
    autoInsertDate: true,
    fields: {
        examname: {
            type: 'string',
            comment: '考试名称',
            meta: {
                formType: 'input',
            },
        },
        place: {
            type: 'string',
            comment: '考试地点',
            meta: {
                formType: 'input',
            },
        },
        class_id: {
            type: 'integer',
            comment: '考试班级',
            meta: {
                formType: 'select',
            },
        }
    },
    foreign: {},
    extendActions: {},
    primaryKey: 'id',
    middlewares: ['loginRequired'], // 该模型需要登录，权限认证
}