financial_management/models/financial_vouchers.json

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": "financial_vouchers",
"title": "财务凭证",
"primary": "id",
"catelog": "entity"
}
],
"fields": [
{
"name": "id",
"title": "ID",
"type": "str",
"length": 64,
"nullable": false,
"comments": "主键"
},
{
"name": "voucher_number",
"title": "凭证编号",
"type": "str",
"length": 64,
"nullable": false,
"comments": "凭证编号"
},
{
"name": "voucher_type",
"title": "凭证类型",
"type": "str",
"length": 32,
"nullable": false,
"comments": "凭证类型: receipt(收款), payment(支出)"
},
{
"name": "contract_id",
"title": "合同ID",
"type": "str",
"length": 64,
"nullable": false,
"comments": "关联合同ID"
},
{
"name": "order_id",
"title": "订单ID",
"type": "str",
"length": 64,
"nullable": true,
"comments": "关联订单ID可为空用于合同级凭证"
},
{
"name": "amount",
"title": "金额",
"type": "decimal",
"length": "15,2",
"nullable": false,
"comments": "凭证金额"
},
{
"name": "voucher_date",
"title": "凭证日期",
"type": "date",
"nullable": false,
"comments": "凭证日期"
},
{
"name": "description",
"title": "凭证描述",
"type": "str",
"length": 500,
"nullable": false,
"comments": "凭证描述,包含合同编号和订单编号"
},
{
"name": "reference_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_vouchers_contract_id",
"idxtype": "index",
"idxfields": [
"contract_id"
]
},
{
"name": "idx_vouchers_order_id",
"idxtype": "index",
"idxfields": [
"order_id"
]
},
{
"name": "idx_vouchers_voucher_number",
"idxtype": "unique",
"idxfields": [
"voucher_number",
"org_id"
]
},
{
"name": "idx_vouchers_org_id",
"idxtype": "index",
"idxfields": [
"org_id"
]
},
{
"name": "idx_vouchers_type",
"idxtype": "index",
"idxfields": [
"voucher_type"
]
}
],
"codes": []
}