|
@@ -5,6 +5,7 @@ const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
|
|
|
// 学生表
|
|
|
const StudentSchema = {
|
|
|
name: { type: String, required: true, maxLength: 200, zh: '姓名' }, // 姓名
|
|
|
+ number: { type: String, required: false, maxLength: 200, zh: '序号' }, // 序号
|
|
|
id_number: { type: String, required: true, maxLength: 200, zh: '身份证号' }, // 身份证号
|
|
|
phone: { type: String, required: true, maxLength: 200, zh: '手机号' }, // 手机号
|
|
|
gender: { type: String, required: false, maxLength: 200, zh: '性别' }, // 性别
|