{ "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, "dec": 2 } ], "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" } ] }