参照 llmage 范式(llm主表无ppid + llm_api_map挂ppid + llmusage计费六件套): - 资源主表不带 ppid,定价挂在「资源×用法」映射表上 - 对外统一 resolve_ppid(resource_ref_id, ctx),load 时注册到产品层解析器注册表 - 含 models 四段式/json CRUD/i18n四语言/load_path/init 种子数据
164 lines
3.8 KiB
JSON
164 lines
3.8 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "storres_spec",
|
|
"title": "存储规格",
|
|
"primary": [
|
|
"id"
|
|
]
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"title": "ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "spec_code",
|
|
"title": "规格编码",
|
|
"type": "str",
|
|
"length": 64,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "spec_name",
|
|
"title": "规格名称",
|
|
"type": "str",
|
|
"length": 255,
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "storage_class",
|
|
"title": "存储类型",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "yes",
|
|
"default": "standard"
|
|
},
|
|
{
|
|
"name": "description",
|
|
"title": "说明",
|
|
"type": "text",
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "min_gb",
|
|
"title": "起售容量GB",
|
|
"type": "double",
|
|
"length": 18,
|
|
"dec": 2,
|
|
"nullable": "yes",
|
|
"default": "1"
|
|
},
|
|
{
|
|
"name": "max_gb",
|
|
"title": "单次上限GB",
|
|
"type": "double",
|
|
"length": 18,
|
|
"dec": 2,
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "step_gb",
|
|
"title": "购买步长GB",
|
|
"type": "double",
|
|
"length": 18,
|
|
"dec": 2,
|
|
"nullable": "yes",
|
|
"default": "1"
|
|
},
|
|
{
|
|
"name": "capacity_total",
|
|
"title": "可售总量GB",
|
|
"type": "double",
|
|
"length": 18,
|
|
"dec": 2,
|
|
"nullable": "yes",
|
|
"default": "-1"
|
|
},
|
|
{
|
|
"name": "capacity_used",
|
|
"title": "已分配GB",
|
|
"type": "double",
|
|
"length": 18,
|
|
"dec": 2,
|
|
"nullable": "yes",
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "backup_enabled",
|
|
"title": "含备份",
|
|
"type": "str",
|
|
"length": 1,
|
|
"nullable": "yes",
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "attr_json",
|
|
"title": "其他属性JSON",
|
|
"type": "text",
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "sort_order",
|
|
"title": "排序",
|
|
"type": "int",
|
|
"nullable": "yes",
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "status",
|
|
"title": "状态",
|
|
"type": "str",
|
|
"length": 16,
|
|
"nullable": "yes",
|
|
"default": "active"
|
|
},
|
|
{
|
|
"name": "org_id",
|
|
"title": "所属机构",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "created_by",
|
|
"title": "创建人",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "timestamp",
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "updated_at",
|
|
"title": "更新时间",
|
|
"type": "timestamp",
|
|
"nullable": "yes"
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "idx_sspec_code",
|
|
"idxtype": "unique",
|
|
"idxfields": [
|
|
"spec_code"
|
|
]
|
|
},
|
|
{
|
|
"name": "idx_sspec_class",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"storage_class",
|
|
"status"
|
|
]
|
|
}
|
|
]
|
|
} |