114 lines
2.8 KiB
JSON
114 lines
2.8 KiB
JSON
{
|
||
"summary": [
|
||
{
|
||
"name": "receipt_allocations",
|
||
"title": "收款分配",
|
||
"primary": "id",
|
||
"catelog": "entity"
|
||
}
|
||
],
|
||
"fields": [
|
||
{
|
||
"name": "id",
|
||
"title": "ID",
|
||
"type": "str",
|
||
"length": 64,
|
||
"nullable": false,
|
||
"comments": "主键"
|
||
},
|
||
{
|
||
"name": "receipt_id",
|
||
"title": "收款ID",
|
||
"type": "str",
|
||
"length": 64,
|
||
"nullable": false,
|
||
"comments": "关联的收款记录ID"
|
||
},
|
||
{
|
||
"name": "order_id",
|
||
"title": "订单ID",
|
||
"type": "str",
|
||
"length": 64,
|
||
"nullable": false,
|
||
"comments": "关联的订单ID"
|
||
},
|
||
{
|
||
"name": "receivable_id",
|
||
"title": "应收ID",
|
||
"type": "str",
|
||
"length": 64,
|
||
"nullable": false,
|
||
"comments": "关联的应收记录ID"
|
||
},
|
||
{
|
||
"name": "allocated_amount",
|
||
"title": "分配金额",
|
||
"type": "decimal",
|
||
"length": "15,2",
|
||
"nullable": false,
|
||
"comments": "分配给该订单的金额"
|
||
},
|
||
{
|
||
"name": "allocation_percentage",
|
||
"title": "分配比例",
|
||
"type": "decimal",
|
||
"length": "5,4",
|
||
"nullable": true,
|
||
"comments": "分配比例(0-1之间)"
|
||
},
|
||
{
|
||
"name": "contract_id",
|
||
"title": "合同ID",
|
||
"type": "str",
|
||
"length": 64,
|
||
"nullable": false,
|
||
"comments": "关联合同ID"
|
||
},
|
||
{
|
||
"name": "org_id",
|
||
"title": "组织ID",
|
||
"type": "str",
|
||
"length": 64,
|
||
"nullable": false,
|
||
"comments": "组织ID,用于多租户隔离"
|
||
},
|
||
{
|
||
"name": "created_at",
|
||
"title": "创建时间",
|
||
"type": "timestamp",
|
||
"nullable": false,
|
||
"comments": "创建时间"
|
||
}
|
||
],
|
||
"indexes": [
|
||
{
|
||
"name": "idx_allocations_receipt_id",
|
||
"idxtype": "index",
|
||
"columns": [
|
||
"receipt_id"
|
||
]
|
||
},
|
||
{
|
||
"name": "idx_allocations_order_id",
|
||
"idxtype": "index",
|
||
"columns": [
|
||
"order_id"
|
||
]
|
||
},
|
||
{
|
||
"name": "idx_allocations_receivable_id",
|
||
"idxtype": "index",
|
||
"columns": [
|
||
"receivable_id"
|
||
]
|
||
},
|
||
{
|
||
"name": "idx_allocations_org_id",
|
||
"idxtype": "index",
|
||
"columns": [
|
||
"org_id"
|
||
]
|
||
}
|
||
],
|
||
"codes": []
|
||
} |