32 lines
1.7 KiB
JSON
32 lines
1.7 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "entity_import",
|
|
"title": "实体导入记录表",
|
|
"primary": ["id"],
|
|
"catelog": "relation"
|
|
}
|
|
],
|
|
"fields": [
|
|
{"name": "id", "title": "主键ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "import_no", "title": "导入单号", "type": "str", "length": 64, "nullable": "no"},
|
|
{"name": "file_name", "title": "文件名", "type": "str", "length": 255},
|
|
{"name": "total_count", "title": "总行数", "type": "int", "nullable": "no", "default": "0"},
|
|
{"name": "success_count", "title": "成功行数", "type": "int", "nullable": "no", "default": "0"},
|
|
{"name": "fail_count", "title": "失败行数", "type": "int", "nullable": "no", "default": "0"},
|
|
{"name": "status", "title": "导入状态", "type": "str", "length": 16, "nullable": "no", "default": "importing"},
|
|
{"name": "error_msg", "title": "错误信息", "type": "text"},
|
|
{"name": "org_id", "title": "机构ID", "type": "str", "length": 32, "nullable": "no", "default": "0"},
|
|
{"name": "created_by", "title": "创建人", "type": "str", "length": 32},
|
|
{"name": "created_at", "title": "创建时间", "type": "timestamp", "nullable": "no"}
|
|
],
|
|
"indexes": [
|
|
{"name": "idx_import_no", "idxtype": "unique", "idxfields": ["import_no"]},
|
|
{"name": "idx_import_status", "idxtype": "index", "idxfields": ["status"]},
|
|
{"name": "idx_import_org", "idxtype": "index", "idxfields": ["org_id"]}
|
|
],
|
|
"codes": [
|
|
{"field": "status", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='import_status'"}
|
|
]
|
|
}
|