feat: add json table definitions for all models (converted from xlsx)
This commit is contained in:
parent
202fe6b578
commit
9fe2b31407
36
models/acc_balance.json
Normal file
36
models/acc_balance.json
Normal file
@ -0,0 +1,36 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "acc_balance",
|
||||
"title": "账户余额表",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "accountid",
|
||||
"title": "账户id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "acc_date",
|
||||
"title": "记账日期",
|
||||
"type": "date"
|
||||
},
|
||||
{
|
||||
"name": "balance",
|
||||
"title": "账户余额",
|
||||
"type": "float",
|
||||
"length": 20
|
||||
}
|
||||
]
|
||||
}
|
||||
70
models/acc_detail.json
Normal file
70
models/acc_detail.json
Normal file
@ -0,0 +1,70 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "acc_detail",
|
||||
"title": "账户明细表",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "accountid",
|
||||
"title": "账户id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "acc_no",
|
||||
"title": "明细顺序号",
|
||||
"type": "short"
|
||||
},
|
||||
{
|
||||
"name": "acc_date",
|
||||
"title": "记账日期",
|
||||
"type": "date"
|
||||
},
|
||||
{
|
||||
"name": "acc_timestamp",
|
||||
"title": "记账时间戳",
|
||||
"type": "timestamp"
|
||||
},
|
||||
{
|
||||
"name": "acc_dir",
|
||||
"title": "记账方向",
|
||||
"type": "str",
|
||||
"length": 1
|
||||
},
|
||||
{
|
||||
"name": "summary",
|
||||
"title": "摘要",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "amount",
|
||||
"title": "记账金额",
|
||||
"type": "float",
|
||||
"length": 18
|
||||
},
|
||||
{
|
||||
"name": "balance",
|
||||
"title": "账户余额",
|
||||
"type": "float",
|
||||
"length": 18
|
||||
},
|
||||
{
|
||||
"name": "acclogid",
|
||||
"title": "账务流水id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
}
|
||||
]
|
||||
}
|
||||
99
models/account.json
Normal file
99
models/account.json
Normal file
@ -0,0 +1,99 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "account",
|
||||
"title": "机构账户表",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "accounting_orgid",
|
||||
"title": "账本机构",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "orgid",
|
||||
"title": "主机构id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "org1id",
|
||||
"title": "从机构id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "subjectid",
|
||||
"title": "科目号",
|
||||
"type": "str",
|
||||
"length": 21
|
||||
},
|
||||
{
|
||||
"name": "balance_at",
|
||||
"title": "余额方向",
|
||||
"type": "str",
|
||||
"length": 1
|
||||
},
|
||||
{
|
||||
"name": "max_detailno",
|
||||
"title": "最大明细顺序号",
|
||||
"type": "short"
|
||||
},
|
||||
{
|
||||
"name": "balance",
|
||||
"title": "余额",
|
||||
"type": "float",
|
||||
"length": 20
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
{
|
||||
"name": "idx1",
|
||||
"idxtype": "unique",
|
||||
"idxfields": [
|
||||
"accounting_orgid",
|
||||
"orgid",
|
||||
"subjectid",
|
||||
"org1id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "subjectid",
|
||||
"table": "subject",
|
||||
"valuefield": "id",
|
||||
"textfield": "name"
|
||||
},
|
||||
{
|
||||
"field": "orgid",
|
||||
"table": "organization",
|
||||
"valuefield": "id",
|
||||
"textfield": "orgname"
|
||||
},
|
||||
{
|
||||
"field": "balance_at",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='accounting_dir'"
|
||||
},
|
||||
{
|
||||
"field": "org1id",
|
||||
"table": "organization",
|
||||
"valuefield": "id",
|
||||
"textfield": "orgname"
|
||||
}
|
||||
]
|
||||
}
|
||||
61
models/account_config.json
Normal file
61
models/account_config.json
Normal file
@ -0,0 +1,61 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "account_config",
|
||||
"title": "账户配置表",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "subjectid",
|
||||
"title": "科目id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "partytype",
|
||||
"title": "主参与方类型",
|
||||
"type": "str",
|
||||
"length": 255,
|
||||
"nullable": "no"
|
||||
},
|
||||
{
|
||||
"name": "party1type",
|
||||
"title": "从参与方类型",
|
||||
"type": "str",
|
||||
"length": 255,
|
||||
"nullable": "yes"
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "party1type",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='partytype'"
|
||||
},
|
||||
{
|
||||
"field": "subjectid",
|
||||
"table": "subject",
|
||||
"valuefield": "id",
|
||||
"textfield": "name"
|
||||
},
|
||||
{
|
||||
"field": "partytype",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='partytype'"
|
||||
}
|
||||
]
|
||||
}
|
||||
98
models/accounting_config.json
Normal file
98
models/accounting_config.json
Normal file
@ -0,0 +1,98 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "accounting_config",
|
||||
"title": "记账配置表",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "action",
|
||||
"title": "交易",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "accounting_orgtype",
|
||||
"title": "账务机构",
|
||||
"type": "str",
|
||||
"length": 256
|
||||
},
|
||||
{
|
||||
"name": "accounting_dir",
|
||||
"title": "记账方向",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "orgtype",
|
||||
"title": "机构类型",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "org1type",
|
||||
"title": "从机构类型",
|
||||
"type": "str",
|
||||
"length": 32,
|
||||
"nullable": "yes"
|
||||
},
|
||||
{
|
||||
"name": "subjectid",
|
||||
"title": "科目id",
|
||||
"type": "str",
|
||||
"length": 21
|
||||
},
|
||||
{
|
||||
"name": "amt_pattern",
|
||||
"title": "金额模板",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "accounting_orgtype",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='partytype'"
|
||||
},
|
||||
{
|
||||
"field": "accounting_dir",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='accounting_dir'"
|
||||
},
|
||||
{
|
||||
"field": "orgtype",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='partytype'"
|
||||
},
|
||||
{
|
||||
"field": "org1type",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='partytype'"
|
||||
},
|
||||
{
|
||||
"field": "subjectid",
|
||||
"table": "subject",
|
||||
"valuefield": "id",
|
||||
"textfield": "name"
|
||||
}
|
||||
]
|
||||
}
|
||||
68
models/accounting_log.json
Normal file
68
models/accounting_log.json
Normal file
@ -0,0 +1,68 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "accounting_log",
|
||||
"title": "账务流水表",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "accountid",
|
||||
"title": "账户id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "acc_date",
|
||||
"title": "记账日期",
|
||||
"type": "date"
|
||||
},
|
||||
{
|
||||
"name": "acc_timestamp",
|
||||
"title": "记账时间戳",
|
||||
"type": "timestamp"
|
||||
},
|
||||
{
|
||||
"name": "acc_dir",
|
||||
"title": "记账方向",
|
||||
"type": "str",
|
||||
"length": 1
|
||||
},
|
||||
{
|
||||
"name": "summary",
|
||||
"title": "摘要",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "amount",
|
||||
"title": "记账金额",
|
||||
"type": "float",
|
||||
"length": 18
|
||||
},
|
||||
{
|
||||
"name": "billid",
|
||||
"title": "账单id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "acc_dir",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='accounting_dir'"
|
||||
}
|
||||
]
|
||||
}
|
||||
77
models/bill.json
Normal file
77
models/bill.json
Normal file
@ -0,0 +1,77 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "bill",
|
||||
"title": "账单",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "customerid",
|
||||
"title": "客户编号",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "resellerid",
|
||||
"title": "商户id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "productid",
|
||||
"title": "产品id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "resourceid",
|
||||
"title": "资源id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "orderid",
|
||||
"title": "订单编号",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "business_op",
|
||||
"title": "业务操作",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "amount",
|
||||
"title": "金额",
|
||||
"type": "float",
|
||||
"length": 18
|
||||
},
|
||||
{
|
||||
"name": "bill_date",
|
||||
"title": "账单日期",
|
||||
"type": "date"
|
||||
},
|
||||
{
|
||||
"name": "bill_timestamp",
|
||||
"title": "账单时间戳",
|
||||
"type": "timestamp"
|
||||
},
|
||||
{
|
||||
"name": "bill_state",
|
||||
"title": "账单状态",
|
||||
"type": "str",
|
||||
"length": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
67
models/bill_detail.json
Normal file
67
models/bill_detail.json
Normal file
@ -0,0 +1,67 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "bill_detail",
|
||||
"title": "账单明细",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "accounting_orgid",
|
||||
"title": "账务机构id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "billid",
|
||||
"title": "账单ID",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"title": "账务说明",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "participantid",
|
||||
"title": "记账方id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "participanttype",
|
||||
"title": "记账方类型",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "subjectname",
|
||||
"title": "科目名称",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "accounting_dir",
|
||||
"title": "记账方向",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "amount",
|
||||
"title": "账单金额",
|
||||
"type": "float",
|
||||
"length": 18
|
||||
}
|
||||
]
|
||||
}
|
||||
48
models/ledger.json
Normal file
48
models/ledger.json
Normal file
@ -0,0 +1,48 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "ledger",
|
||||
"title": "总账表",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "accounting_orgid",
|
||||
"title": "账本机构",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "subjectid",
|
||||
"title": "科目号",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "acc_date",
|
||||
"title": "账务日期",
|
||||
"type": "date"
|
||||
},
|
||||
{
|
||||
"name": "d_balance",
|
||||
"title": "借方余额",
|
||||
"type": "float",
|
||||
"length": 18
|
||||
},
|
||||
{
|
||||
"name": "c_balance",
|
||||
"title": "贷方余额",
|
||||
"type": "float",
|
||||
"length": 18
|
||||
}
|
||||
]
|
||||
}
|
||||
53
models/subject.json
Normal file
53
models/subject.json
Normal file
@ -0,0 +1,53 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "subject",
|
||||
"title": "科目表",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"title": "科目名称",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "balance_side",
|
||||
"title": "余额方向",
|
||||
"type": "str",
|
||||
"length": 1
|
||||
},
|
||||
{
|
||||
"name": "subjecttype",
|
||||
"title": "科目类别",
|
||||
"type": "str",
|
||||
"length": 30
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "balance_side",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='balance_side'"
|
||||
},
|
||||
{
|
||||
"field": "subjecttype",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='subjecttype'"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user