supplychain/models/supply_contract_items.json
yumoqing fcec9422ab fix: supply_contract_items codes 表名修正
product_types → product_category (textfield: type_name → name)
products → product
2026-07-03 16:21:59 +08:00

112 lines
2.6 KiB
JSON

{
"summary": [
{
"name": "supply_contract_items",
"title": "供销合同产品折扣明细表",
"primary": [
"id"
],
"catelog": "relation"
}
],
"fields": [
{
"name": "id",
"title": "主键ID",
"type": "str",
"length": 32,
"nullable": "no"
},
{
"name": "contract_id",
"title": "供销合同ID",
"type": "str",
"length": 32,
"nullable": "no"
},
{
"name": "resellerid",
"title": "所属分销商机构ID",
"type": "str",
"length": 32,
"nullable": "no"
},
{
"name": "prodtypeid",
"title": "产品分类ID",
"type": "str",
"length": 32
},
{
"name": "productid",
"title": "产品ID",
"type": "str",
"length": 32
},
{
"name": "discount",
"title": "进货折扣",
"type": "double",
"length": 5,
"dec": 4,
"nullable": "no",
"default": "1.0000"
},
{
"name": "settlement_price",
"title": "结算单价",
"type": "double",
"length": 15,
"dec": 4
},
{
"name": "remark",
"title": "备注",
"type": "text"
},
{
"name": "created_at",
"title": "创建时间",
"type": "datetime",
"nullable": "no"
}
],
"indexes": [
{
"name": "idx_sci_contract",
"idxtype": "index",
"idxfields": [
"contract_id"
]
},
{
"name": "idx_sci_product",
"idxtype": "index",
"idxfields": [
"contract_id",
"prodtypeid",
"productid"
]
}
],
"codes": [
{
"field": "contract_id",
"table": "supply_contracts",
"valuefield": "id",
"textfield": "contract_name"
},
{
"field": "prodtypeid",
"table": "product_category",
"valuefield": "id",
"textfield": "name"
},
{
"field": "productid",
"table": "product",
"valuefield": "id",
"textfield": "product_name"
}
]
}