- All 7 models: created_at/updated_at changed from datetime to timestamp type (DDL template auto-generates DEFAULT CURRENT_TIMESTAMP for timestamp type) - core.py: fix all sor.U() calls passing 3 args (id must be in data dict) - core.py: fix sor.I() misuse for INSERT (should be sor.C()) - API dspy updates: fix sor.U() 3-arg bug in category/product/type_config/resource/subscription/supplier - product_resource_supplier_update.dspy: add missing updated_at field
106 lines
2.5 KiB
JSON
106 lines
2.5 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "product_resource_supplier",
|
|
"title": "产品资源供应商关联表",
|
|
"primary": [
|
|
"id"
|
|
],
|
|
"catelog": "relation"
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"title": "主键ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "product_resource_id",
|
|
"title": "产品资源绑定ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "supplier_org_id",
|
|
"title": "供应商机构ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "priority",
|
|
"title": "优先级",
|
|
"type": "int",
|
|
"default": "1"
|
|
},
|
|
{
|
|
"name": "weight",
|
|
"title": "权重",
|
|
"type": "int",
|
|
"default": "100"
|
|
},
|
|
{
|
|
"name": "status",
|
|
"title": "状态",
|
|
"type": "char",
|
|
"length": 1,
|
|
"default": "1"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "timestamp",
|
|
"nullable": "no"
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "idx_prs_resource",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"product_resource_id"
|
|
]
|
|
},
|
|
{
|
|
"name": "idx_prs_supplier",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"supplier_org_id"
|
|
]
|
|
},
|
|
{
|
|
"name": "idx_prs_unique",
|
|
"idxtype": "unique",
|
|
"idxfields": [
|
|
"product_resource_id",
|
|
"supplier_org_id"
|
|
]
|
|
}
|
|
],
|
|
"codes": [
|
|
{
|
|
"field": "product_resource_id",
|
|
"table": "product_resource",
|
|
"valuefield": "id",
|
|
"textfield": "resource_ref_name"
|
|
},
|
|
{
|
|
"field": "supplier_org_id",
|
|
"table": "supplychain.suppliers",
|
|
"valuefield": "org_id",
|
|
"textfield": "supplier_name"
|
|
},
|
|
{
|
|
"field": "status",
|
|
"table": "appcodes_kv",
|
|
"valuefield": "k",
|
|
"textfield": "v",
|
|
"cond": "parentid='product_status'"
|
|
}
|
|
]
|
|
}
|