account_resource/models/acctres_spec.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

149 lines
3.5 KiB
JSON

{
"summary": [
{
"name": "acctres_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": "spec_type",
"title": "规格类型",
"type": "str",
"length": 32,
"nullable": "yes",
"default": "standard"
},
{
"name": "description",
"title": "说明",
"type": "text",
"nullable": "yes"
},
{
"name": "workspace_max",
"title": "可建工作空间数",
"type": "int",
"nullable": "yes",
"default": "1"
},
{
"name": "workspace_gb",
"title": "赠送容量GB",
"type": "double",
"length": 18,
"dec": 2,
"nullable": "yes",
"default": "0"
},
{
"name": "concurrent_task",
"title": "并发任务数",
"type": "int",
"nullable": "yes",
"default": "1"
},
{
"name": "gpu_allowed",
"title": "允许GPU",
"type": "str",
"length": 1,
"nullable": "yes",
"default": "0"
},
{
"name": "member_max",
"title": "成员数上限",
"type": "int",
"nullable": "yes",
"default": "1"
},
{
"name": "privilege_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_spec_code",
"idxtype": "unique",
"idxfields": [
"spec_code"
]
},
{
"name": "idx_spec_status",
"idxtype": "index",
"idxfields": [
"status"
]
}
]
}