financial_management/models/receivables.json

117 lines
2.6 KiB
JSON

{
"table_name": "receivables",
"fields": [
{
"name": "id",
"type": "str",
"not_null": true,
"comment": "主键ID",
"length": 64
},
{
"name": "order_id",
"type": "str",
"comment": "订单ID",
"length": 64
},
{
"name": "contract_id",
"type": "str",
"comment": "合同ID",
"length": 64
},
{
"name": "customer_id",
"type": "str",
"comment": "客户ID",
"length": 64
},
{
"name": "receivable_amount",
"type": "double",
"comment": "应收金额",
"length": 15,
"dec": 2
},
{
"name": "received_amount",
"type": "double",
"comment": "已收金额",
"length": 15,
"dec": 2
},
{
"name": "due_date",
"type": "date",
"comment": "到期日期"
},
{
"name": "status",
"type": "str",
"comment": "状态",
"length": 32
},
{
"name": "description",
"type": "str",
"comment": "描述",
"length": 500
},
{
"name": "org_id",
"type": "str",
"comment": "组织ID",
"length": 64
},
{
"name": "created_at",
"type": "timestamp",
"comment": "创建时间"
},
{
"name": "updated_at",
"type": "timestamp",
"comment": "更新时间"
}
],
"indexes": [
{
"name": "idx_receivables_customer",
"idxfields": [
"customer_id"
],
"idxtype": "index"
},
{
"name": "idx_receivables_contract",
"idxfields": [
"contract_id"
],
"idxtype": "index"
},
{
"name": "idx_receivables_status",
"idxfields": [
"status"
],
"idxtype": "index"
},
{
"name": "idx_receivables_due_date",
"idxfields": [
"due_date"
],
"idxtype": "index"
}
],
"summary": [
{
"name": "receivables",
"title": "应收款项",
"primary": [
"id"
],
"catelog": "entity"
}
]
}