refactor(models): convert to json format per database-table-definition-spec
This commit is contained in:
parent
63ab112fed
commit
8463bb62f4
@ -3,7 +3,9 @@
|
|||||||
{
|
{
|
||||||
"name": "financial_vouchers",
|
"name": "financial_vouchers",
|
||||||
"title": "财务凭证",
|
"title": "财务凭证",
|
||||||
"primary": "id",
|
"primary": [
|
||||||
|
"id"
|
||||||
|
],
|
||||||
"catelog": "entity"
|
"catelog": "entity"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@ -3,7 +3,9 @@
|
|||||||
{
|
{
|
||||||
"name": "payments",
|
"name": "payments",
|
||||||
"title": "支出记录",
|
"title": "支出记录",
|
||||||
"primary": "id",
|
"primary": [
|
||||||
|
"id"
|
||||||
|
],
|
||||||
"catelog": "entity"
|
"catelog": "entity"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@ -3,7 +3,9 @@
|
|||||||
{
|
{
|
||||||
"name": "receipt_allocations",
|
"name": "receipt_allocations",
|
||||||
"title": "收款分配",
|
"title": "收款分配",
|
||||||
"primary": "id",
|
"primary": [
|
||||||
|
"id"
|
||||||
|
],
|
||||||
"catelog": "entity"
|
"catelog": "entity"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@ -3,7 +3,9 @@
|
|||||||
{
|
{
|
||||||
"name": "receipts",
|
"name": "receipts",
|
||||||
"title": "收款记录",
|
"title": "收款记录",
|
||||||
"primary": "id",
|
"primary": [
|
||||||
|
"id"
|
||||||
|
],
|
||||||
"catelog": "entity"
|
"catelog": "entity"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@ -3,34 +3,42 @@
|
|||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"name": "id",
|
"name": "id",
|
||||||
"type": "varchar(64)",
|
"type": "str",
|
||||||
"not_null": true,
|
"not_null": true,
|
||||||
"comment": "主键ID"
|
"comment": "主键ID",
|
||||||
|
"length": 64
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "order_id",
|
"name": "order_id",
|
||||||
"type": "varchar(64)",
|
"type": "str",
|
||||||
"comment": "订单ID"
|
"comment": "订单ID",
|
||||||
|
"length": 64
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "contract_id",
|
"name": "contract_id",
|
||||||
"type": "varchar(64)",
|
"type": "str",
|
||||||
"comment": "合同ID"
|
"comment": "合同ID",
|
||||||
|
"length": 64
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "customer_id",
|
"name": "customer_id",
|
||||||
"type": "varchar(64)",
|
"type": "str",
|
||||||
"comment": "客户ID"
|
"comment": "客户ID",
|
||||||
|
"length": 64
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "receivable_amount",
|
"name": "receivable_amount",
|
||||||
"type": "decimal(15,2)",
|
"type": "double",
|
||||||
"comment": "应收金额"
|
"comment": "应收金额",
|
||||||
|
"length": 15,
|
||||||
|
"dec": 2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "received_amount",
|
"name": "received_amount",
|
||||||
"type": "decimal(15,2)",
|
"type": "double",
|
||||||
"comment": "已收金额"
|
"comment": "已收金额",
|
||||||
|
"length": 15,
|
||||||
|
"dec": 2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "due_date",
|
"name": "due_date",
|
||||||
@ -39,18 +47,21 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "status",
|
"name": "status",
|
||||||
"type": "varchar(32)",
|
"type": "str",
|
||||||
"comment": "状态"
|
"comment": "状态",
|
||||||
|
"length": 32
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "description",
|
"name": "description",
|
||||||
"type": "varchar(500)",
|
"type": "str",
|
||||||
"comment": "描述"
|
"comment": "描述",
|
||||||
|
"length": 500
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "org_id",
|
"name": "org_id",
|
||||||
"type": "varchar(64)",
|
"type": "str",
|
||||||
"comment": "组织ID"
|
"comment": "组织ID",
|
||||||
|
"length": 64
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "created_at",
|
"name": "created_at",
|
||||||
@ -97,7 +108,9 @@
|
|||||||
{
|
{
|
||||||
"name": "receivables",
|
"name": "receivables",
|
||||||
"title": "应收款项",
|
"title": "应收款项",
|
||||||
"primary": "id",
|
"primary": [
|
||||||
|
"id"
|
||||||
|
],
|
||||||
"catelog": "entity"
|
"catelog": "entity"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user