accounting/models/biz_orderdetail.json
ymq edb280ad79 feat(models): 补 biz_order/biz_orderdetail 业务订单表
记账链路订单载体:product_accounting_generic 写 biz_order(订单)+biz_orderdetail(明细),
consume_accounting 再基于 orderid 生成 bill 账单。此前这两张表只在 sage 库手工建,
pipeline-app 缺建表定义,导致计费落账时报 table(biz_order) not exist。
表结构对齐 sage.biz_order 实体表。
2026-08-26 17:41:30 +08:00

22 lines
992 B
JSON

{
"summary": [
{
"name": "biz_orderdetail",
"title": "业务订单明细",
"primary": [
"id"
]
}
],
"fields": [
{"name": "id", "title": "id", "type": "str", "length": 32},
{"name": "orderid", "title": "订单号", "type": "str", "length": 32, "nullable": "yes"},
{"name": "productid", "title": "产品id", "type": "str", "length": 32, "nullable": "yes"},
{"name": "product_cnt", "title": "产品数量", "type": "int", "nullable": "yes"},
{"name": "prod_config", "title": "产品配置", "type": "text", "nullable": "yes"},
{"name": "list_amount", "title": "原价", "type": "double", "length": 18, "dec": 4, "nullable": "yes"},
{"name": "trans_amount", "title": "交易金额", "type": "double", "length": 18, "dec": 4, "nullable": "yes"},
{"name": "currency", "title": "币种", "type": "str", "length": 3, "nullable": "yes"}
]
}