storage_mgr/models/storage_export.json

27 lines
1.6 KiB
JSON

{
"summary": [{
"name": "storage_export",
"title": "存储导出",
"primary": ["id"],
"catelog": "entity"
}],
"fields": [
{"name": "id", "title": "id", "type": "str", "length": 32, "nullable": "no"},
{"name": "resellerid", "title": "商户机构id", "type": "str", "length": 32, "nullable": "no"},
{"name": "server_id", "title": "所属存储服务器", "type": "str", "length": 32, "nullable": "no"},
{"name": "name", "title": "导出名称", "type": "str", "length": 128, "nullable": "no"},
{"name": "export_path", "title": "导出路径", "type": "str", "length": 512, "nullable": "no"},
{"name": "size_limit_gb", "title": "容量限制GB(0=不限制)", "type": "int", "default": 0},
{"name": "access_mode", "title": "访问模式(rw/ro)", "type": "char", "length": 8, "default": "rw"},
{"name": "allowed_hosts", "title": "允许访问的主机(CIDR,逗号分隔)", "type": "str", "length": 1024},
{"name": "status", "title": "状态(active/inactive)", "type": "char", "length": 16, "default": "active"},
{"name": "created_at", "title": "创建时间", "type": "timestamp", "nullable": "no"},
{"name": "updated_at", "title": "更新时间", "type": "timestamp", "nullable": "no"}
],
"codes": [
{"field": "server_id", "table": "storage_server", "valuefield": "id", "textfield": "name"},
{"field": "access_mode", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='storage_access_mode'"},
{"field": "status", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='export_status'"}
]
}