|
@@ -8,7 +8,7 @@ const column = new Schema(
|
|
|
title: { type: String, required: true }, // 字段名,必须是英文
|
|
|
type: { type: String, default: String }, // 字段类型,默认:String
|
|
|
required: { type: Boolean, default: false }, // 是否必填,默认:否
|
|
|
- maxLength: { type: Number }, // 最大长度限制
|
|
|
+ index: { type: Boolean, default: false },
|
|
|
remark: { type: String },
|
|
|
},
|
|
|
{
|
|
@@ -18,7 +18,8 @@ const column = new Schema(
|
|
|
|
|
|
// 字段表
|
|
|
const table = {
|
|
|
- name: { type: String, required: true },
|
|
|
+ name: { type: String, required: true }, // 表名
|
|
|
+ name_zh: { type: String, required: true }, // 表中文名
|
|
|
project: { type: ObjectId, required: true }, // 项目
|
|
|
columns: [ column ], // 字段列表
|
|
|
remark: { type: String },
|