feat: add json table definitions for all models (converted from xlsx)
This commit is contained in:
parent
57e5c736c0
commit
76d22f5e7c
57
models/components.json
Normal file
57
models/components.json
Normal file
@ -0,0 +1,57 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "components",
|
||||
"title": "部件表",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"title": "名称",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "ccatelogid",
|
||||
"title": "部件分类",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "cmodel",
|
||||
"title": "型号",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "unitname",
|
||||
"title": "计量名",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "unitvalue",
|
||||
"title": "计量值",
|
||||
"type": "short"
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "ccatelogid",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='ccatelog'"
|
||||
}
|
||||
]
|
||||
}
|
||||
71
models/cpccluster.json
Normal file
71
models/cpccluster.json
Normal file
@ -0,0 +1,71 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "cpccluster",
|
||||
"title": "算力集群",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"title": "名称",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "cpcid",
|
||||
"title": "算力中心id",
|
||||
"type": "str",
|
||||
"length": 32,
|
||||
"nullable": "no"
|
||||
},
|
||||
{
|
||||
"name": "clustertype",
|
||||
"title": "集群类型",
|
||||
"type": "str",
|
||||
"length": 1
|
||||
},
|
||||
{
|
||||
"name": "controllerid",
|
||||
"title": "控制节点id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "enable_date",
|
||||
"title": "启用日期",
|
||||
"type": "date",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "export_date",
|
||||
"title": "停用日期",
|
||||
"type": "date",
|
||||
"length": 255
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "clustertype",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='clustertype'"
|
||||
},
|
||||
{
|
||||
"field": "controllerid",
|
||||
"table": "hostdev",
|
||||
"valuefield": "id",
|
||||
"textfield": "name"
|
||||
}
|
||||
]
|
||||
}
|
||||
81
models/cpclist.json
Normal file
81
models/cpclist.json
Normal file
@ -0,0 +1,81 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "cpclist",
|
||||
"title": "算力中心列表",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"title": "名称",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "orgid",
|
||||
"title": "属主机构id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "pcapi_url",
|
||||
"title": "pcapi网址",
|
||||
"type": "str",
|
||||
"length": 500
|
||||
},
|
||||
{
|
||||
"name": "api_user",
|
||||
"title": "接口用户",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "api_pwd",
|
||||
"title": "接口密码",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "enable_date",
|
||||
"title": "启用日期",
|
||||
"type": "date",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "expire_date",
|
||||
"title": "停用日期",
|
||||
"type": "date",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "contactname",
|
||||
"title": "联系人",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "contactphone",
|
||||
"title": "联系电话",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "orgid",
|
||||
"table": "organization",
|
||||
"valuefield": "id",
|
||||
"textfield": "orgname"
|
||||
}
|
||||
]
|
||||
}
|
||||
90
models/cpcnode.json
Normal file
90
models/cpcnode.json
Normal file
@ -0,0 +1,90 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "cpcnode",
|
||||
"title": "算力节点",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"title": "名称",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "ip",
|
||||
"title": "内网ip",
|
||||
"type": "str",
|
||||
"length": 90
|
||||
},
|
||||
{
|
||||
"name": "sshport",
|
||||
"title": "ssh端口号",
|
||||
"type": "short"
|
||||
},
|
||||
{
|
||||
"name": "adminuser",
|
||||
"title": "管理账号",
|
||||
"type": "str",
|
||||
"length": 99
|
||||
},
|
||||
{
|
||||
"name": "adminpwd",
|
||||
"title": "管理密码",
|
||||
"type": "str",
|
||||
"length": 99
|
||||
},
|
||||
{
|
||||
"name": "cpcid",
|
||||
"title": "算力中心id",
|
||||
"type": "str",
|
||||
"length": 32,
|
||||
"nullable": "no"
|
||||
},
|
||||
{
|
||||
"name": "node_status",
|
||||
"title": "节点状态",
|
||||
"type": "str",
|
||||
"length": 1,
|
||||
"nullable": "yes"
|
||||
},
|
||||
{
|
||||
"name": "clusterid",
|
||||
"title": "所属集群",
|
||||
"type": "long",
|
||||
"length": 32,
|
||||
"nullable": "yes"
|
||||
},
|
||||
{
|
||||
"name": "enable_date",
|
||||
"title": "启用日期",
|
||||
"type": "date",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "export_date",
|
||||
"title": "停用日期",
|
||||
"type": "date",
|
||||
"length": 255
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "node_status",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='node_status'"
|
||||
}
|
||||
]
|
||||
}
|
||||
45
models/cpcnode_config.json
Normal file
45
models/cpcnode_config.json
Normal file
@ -0,0 +1,45 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "cpcnode_config",
|
||||
"title": "节点配置表",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "nodeid",
|
||||
"title": "节点名称",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"title": "名称",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"title": "描述",
|
||||
"type": "str",
|
||||
"length": 3000
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "nodeid",
|
||||
"table": "cpnode",
|
||||
"valuefield": "id",
|
||||
"textfield": "name"
|
||||
}
|
||||
]
|
||||
}
|
||||
49
models/cpcnode_config_detail.json
Normal file
49
models/cpcnode_config_detail.json
Normal file
@ -0,0 +1,49 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "cpcnode_config_detail",
|
||||
"title": "节点配置明细项",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "nodeconfigid",
|
||||
"title": "节点配置id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "comid",
|
||||
"title": "部件id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "comcnt",
|
||||
"title": "部件数量",
|
||||
"type": "short"
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "comid",
|
||||
"table": "components",
|
||||
"valuefield": "id",
|
||||
"textfield": "name"
|
||||
},
|
||||
{
|
||||
"field": "nodeconfigid",
|
||||
"table": "cpnode_config",
|
||||
"textfield": "name"
|
||||
}
|
||||
]
|
||||
}
|
||||
52
models/cpvalue.json
Normal file
52
models/cpvalue.json
Normal file
@ -0,0 +1,52 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "cpvalue",
|
||||
"title": "算力值",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "comid",
|
||||
"title": "部件id",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "cpval",
|
||||
"title": "算力值",
|
||||
"type": "float",
|
||||
"length": 18
|
||||
},
|
||||
{
|
||||
"name": "cpunit",
|
||||
"title": "算力单位",
|
||||
"type": "str",
|
||||
"length": 1
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "comid",
|
||||
"table": "components",
|
||||
"valuefield": "id",
|
||||
"textfield": "name"
|
||||
},
|
||||
{
|
||||
"field": "cpunit",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "id",
|
||||
"textfield": "value",
|
||||
"cond": "parentid='cpunit'"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user