account_resource/models/acctres_pricing_map.json
ymq 71576381bd feat: account_resource 资源模块
参照 llmage 范式(llm主表无ppid + llm_api_map挂ppid + llmusage计费六件套):
- 资源主表不带 ppid,定价挂在「资源×用法」映射表上
- 对外统一 resolve_ppid(resource_ref_id, ctx),load 时注册到产品层解析器注册表
- 含 models 四段式/json CRUD/i18n四语言/load_path/init 种子数据
2026-08-26 14:51:27 +08:00

120 lines
2.7 KiB
JSON

{
"summary": [
{
"name": "acctres_pricing_map",
"title": "账号规格定价映射",
"primary": [
"id"
]
}
],
"fields": [
{
"name": "id",
"title": "ID",
"type": "str",
"length": 32,
"nullable": "no"
},
{
"name": "spec_id",
"title": "规格ID",
"type": "str",
"length": 32,
"nullable": "no"
},
{
"name": "charge_mode",
"title": "计费方式",
"type": "str",
"length": 32,
"nullable": "no"
},
{
"name": "charge_unit",
"title": "计费单位",
"type": "str",
"length": 16,
"nullable": "yes"
},
{
"name": "valid_days",
"title": "有效天数",
"type": "int",
"nullable": "yes"
},
{
"name": "ppid",
"title": "定价项目ID",
"type": "str",
"length": 32,
"nullable": "yes"
},
{
"name": "is_default",
"title": "缺省方式",
"type": "str",
"length": 1,
"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_apm_spec",
"idxtype": "index",
"idxfields": [
"spec_id"
]
},
{
"name": "idx_apm_mode",
"idxtype": "unique",
"idxfields": [
"spec_id",
"charge_mode"
]
},
{
"name": "idx_apm_ppid",
"idxtype": "index",
"idxfields": [
"ppid"
]
}
]
}