{ "summary": [{"name": "distributor_pipeline", "title": "分销商-产线关联定价表", "primary": ["id"]}], "fields": [ {"name": "id", "title": "主键", "type": "str", "length": 32, "nullable": "no"}, {"name": "distributor_id", "title": "分销商ID", "type": "str", "length": 32, "nullable": "no"}, {"name": "pipeline_id", "title": "产线ID", "type": "str", "length": 32, "nullable": "no"}, {"name": "custom_price", "title": "自定义单价", "type": "double", "length": 15, "dec": 4}, {"name": "markup_type", "title": "加价方式", "type": "str", "length": 20}, {"name": "markup_value", "title": "加价值", "type": "double", "length": 10, "dec": 2}, {"name": "daily_limit", "title": "日限额", "type": "int", "default": "0"}, {"name": "monthly_limit", "title": "月限额", "type": "int", "default": "0"}, {"name": "today_usage", "title": "今日已用", "type": "int", "default": "0"}, {"name": "month_usage", "title": "本月已用", "type": "int", "default": "0"}, {"name": "status", "title": "状态", "type": "str", "length": 20, "default": "active"}, {"name": "created_at", "title": "创建时间", "type": "timestamp"}, {"name": "updated_at", "title": "更新时间", "type": "timestamp"} ], "indexes": [ {"name": "idx_dp_dist_pipe", "idxtype": "unique", "idxfields": ["distributor_id", "pipeline_id"]}, {"name": "idx_dp_distributor", "idxtype": "index", "idxfields": ["distributor_id"]} ], "codes": [ {"field": "distributor_id", "table": "distributors", "valuefield": "id", "textfield": "name"}, {"field": "pipeline_id", "table": "pipelines", "valuefield": "id", "textfield": "name"} ] }