137 lines
3.5 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"summary": [
{
"name": "receipts",
"title": "收款记录",
"primary": "id",
"catelog": "entity"
}
],
"fields": [
{
"name": "id",
"title": "ID",
"type": "str",
"length": 64,
"nullable": false,
"comments": "主键"
},
{
"name": "receipt_number",
"title": "收款编号",
"type": "str",
"length": 64,
"nullable": false,
"comments": "收款编号"
},
{
"name": "customer_id",
"title": "客户ID",
"type": "str",
"length": 64,
"nullable": false,
"comments": "客户ID"
},
{
"name": "total_amount",
"title": "收款总额",
"type": "decimal",
"length": "15,2",
"nullable": false,
"comments": "本次收款总金额"
},
{
"name": "receipt_date",
"title": "收款日期",
"type": "date",
"nullable": false,
"comments": "实际收款日期"
},
{
"name": "receipt_method",
"title": "收款方式",
"type": "str",
"length": 32,
"nullable": false,
"comments": "收款方式: bank_transfer, cash, check, other"
},
{
"name": "receipt_status",
"title": "收款状态",
"type": "str",
"length": 32,
"nullable": false,
"comments": "状态: pending(待处理), processed(已处理), verified(已核销)"
},
{
"name": "description",
"title": "备注",
"type": "str",
"length": 500,
"nullable": true,
"comments": "备注信息"
},
{
"name": "created_by",
"title": "创建人",
"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": "创建时间"
},
{
"name": "updated_at",
"title": "更新时间",
"type": "timestamp",
"nullable": false,
"comments": "更新时间"
}
],
"indexes": [
{
"name": "idx_receipts_customer_id",
"idxtype": "index",
"idxfields": [
"customer_id"
]
},
{
"name": "idx_receipts_receipt_number",
"idxtype": "unique",
"idxfields": [
"receipt_number",
"org_id"
]
},
{
"name": "idx_receipts_org_id",
"idxtype": "index",
"idxfields": [
"org_id"
]
},
{
"name": "idx_receipts_status",
"idxtype": "index",
"idxfields": [
"receipt_status"
]
}
],
"codes": []
}