参照 llmage 范式(llm主表无ppid + llm_api_map挂ppid + llmusage计费六件套): - 资源主表不带 ppid,定价挂在「资源×用法」映射表上 - 对外统一 resolve_ppid(resource_ref_id, ctx),load 时注册到产品层解析器注册表 - 含 models 四段式/json CRUD/i18n四语言/load_path/init 种子数据
168 lines
3.9 KiB
JSON
168 lines
3.9 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "storres_sample",
|
|
"title": "容量采样",
|
|
"primary": [
|
|
"id"
|
|
]
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"title": "ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "spec_id",
|
|
"title": "规格ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "subscription_id",
|
|
"title": "订购ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "target_type",
|
|
"title": "计量对象类型",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "target_id",
|
|
"title": "计量对象ID",
|
|
"type": "str",
|
|
"length": 64,
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "userid",
|
|
"title": "用户ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "userorgid",
|
|
"title": "用户机构",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "sample_date",
|
|
"title": "采样日期",
|
|
"type": "date",
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "sample_time",
|
|
"title": "采样时间",
|
|
"type": "timestamp",
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "used_gb",
|
|
"title": "实测容量GB",
|
|
"type": "double",
|
|
"length": 18,
|
|
"dec": 4,
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "quota_gb",
|
|
"title": "配额容量GB",
|
|
"type": "double",
|
|
"length": 18,
|
|
"dec": 4,
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "over_gb",
|
|
"title": "超额GB",
|
|
"type": "double",
|
|
"length": 18,
|
|
"dec": 4,
|
|
"nullable": "yes",
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "source",
|
|
"title": "采样来源",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "yes",
|
|
"default": "scan"
|
|
},
|
|
{
|
|
"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_ss_target",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"target_type",
|
|
"target_id",
|
|
"sample_date"
|
|
]
|
|
},
|
|
{
|
|
"name": "idx_ss_org",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"userorgid",
|
|
"sample_date"
|
|
]
|
|
},
|
|
{
|
|
"name": "idx_ss_sub",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"subscription_id",
|
|
"sample_date"
|
|
]
|
|
}
|
|
]
|
|
} |