Files
ssw-platform/crates/sspf-lowcode/tests/fixtures/sample_model.json
T
admin f0c77f731c feat(lowcode): 低代码元数据引擎第一波 —— 解析 + 校验 + 3 个只读工具
- 新 crate sspf-lowcode(纯计算,AR7 钉住不依赖 DB/HTTP):widget 把 54 种 jnpfKey 归成 11 类
  (决定「怎么存、能不能接收入参」)/ form 解析控件树 / model 解析表结构 / validate 9 类诊断码
- DDL:base_visual_dev + base_visual_release 逐字对齐官方(21 → 23 张表)
- MCP 3 个只读工具:form.list / form.describe / form.validate,后两个支持 inline JSON
- 真实样例落盘为 fixture(官方初始化数据的「应收费用」:主表 6 字段 / 子表 8 字段)
- 新增 lowcode-smoke.sh 8 条(含两条反自证:改坏 __vModel__ 必被抓、未知控件只 warn)
- 影响:测试 306 → 344;十二闸全绿;三条真实方言已写进注释与测试
2026-10-31 11:47:40 +08:00

451 lines
9.4 KiB
JSON

[
{
"relationTable": "",
"tableField": "",
"typeId": "1",
"fields": [
{
"allowNull": 0,
"autoIncrement": 0,
"columnName": null,
"dataLength": "50",
"dataType": "varchar",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_Id",
"fieldName": "主键",
"identity": 0,
"primaryKey": 1
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": "100",
"dataType": "varchar",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_Building",
"fieldName": "楼宇号",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": "100",
"dataType": "varchar",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_Room",
"fieldName": "房间号",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": "50",
"dataType": "varchar",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_Company_name",
"fieldName": "公司名称",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": "50",
"dataType": "varchar",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_Userid",
"fieldName": "对接人",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": "50",
"dataType": "varchar",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_Phone",
"fieldName": "联系方式",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": "50",
"dataType": "varchar",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_Ost",
"fieldName": "职务",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": null,
"dataType": "bigint",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_Sort_Code",
"fieldName": "排序",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": null,
"dataType": "int",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_EnabledMark",
"fieldName": "有效标志",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": null,
"dataType": "datetime",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_CreatorTime",
"fieldName": "创建时间",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": "50",
"dataType": "varchar",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_CreatorUserId",
"fieldName": "创建用户",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": null,
"dataType": "datetime",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_LastModifyTime",
"fieldName": "修改时间",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": "50",
"dataType": "varchar",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_LastModifyUserId",
"fieldName": "修改用户",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 0,
"autoIncrement": 0,
"columnName": null,
"dataLength": "50",
"dataType": "varchar",
"dataTypeName": null,
"dataTypeReal": null,
"field": "f_tenant_id",
"fieldName": "租户id",
"identity": 0,
"primaryKey": 1
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": null,
"dataType": "int",
"dataTypeName": null,
"dataTypeReal": null,
"field": "f_version",
"fieldName": "乐观锁",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": "50",
"dataType": "varchar",
"dataTypeName": null,
"dataTypeReal": null,
"field": "f_flowtaskid",
"fieldName": "流程任务主键",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": "50",
"dataType": "varchar",
"dataTypeName": null,
"dataTypeReal": null,
"field": "f_flow_id",
"fieldName": "流程id",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": "50",
"dataType": "varchar",
"dataTypeName": null,
"dataTypeReal": null,
"field": "f_flow_task_id",
"fieldName": "流程任务主键",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": null,
"dataType": "int",
"dataTypeName": null,
"dataTypeReal": null,
"field": "f_inte_assistant",
"fieldName": "集成助手数据标识",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": null,
"dataType": "int",
"dataTypeName": null,
"dataTypeReal": null,
"field": "f_flow_state",
"fieldName": "流程任务状态",
"identity": 0,
"primaryKey": 0
}
],
"relationField": "",
"table": "test_receivable",
"tableName": "应收费用主表"
},
{
"relationTable": "test_receivable",
"tableField": "F_Receivableid",
"typeId": "0",
"fields": [
{
"allowNull": 0,
"autoIncrement": 0,
"columnName": null,
"dataLength": "50",
"dataType": "varchar",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_Id",
"fieldName": "主键",
"identity": 0,
"primaryKey": 1
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": "50",
"dataType": "varchar",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_Receivableid",
"fieldName": "主表主键",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": "200",
"dataType": "varchar",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_Month",
"fieldName": "缴费月份",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": "18,2",
"dataType": "decimal",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_Rent",
"fieldName": "房租",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": "18,2",
"dataType": "decimal",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_Water_rent",
"fieldName": "水费",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": "18,2",
"dataType": "decimal",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_Powerrate",
"fieldName": "电费",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": "18,2",
"dataType": "decimal",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_Property",
"fieldName": "物业费",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": "18,2",
"dataType": "decimal",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_Cleaning",
"fieldName": "垃圾费",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": "18,2",
"dataType": "decimal",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_Pollutant",
"fieldName": "排污费",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": "18,2",
"dataType": "decimal",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_Totalbilling",
"fieldName": "累计应收费用",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": null,
"dataType": "datetime",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_CreatorTime",
"fieldName": "创建时间",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 1,
"autoIncrement": 0,
"columnName": null,
"dataLength": "50",
"dataType": "varchar",
"dataTypeName": null,
"dataTypeReal": null,
"field": "F_CreatorUserId",
"fieldName": "创建用户",
"identity": 0,
"primaryKey": 0
},
{
"allowNull": 0,
"autoIncrement": 0,
"columnName": null,
"dataLength": "50",
"dataType": "varchar",
"dataTypeName": null,
"dataTypeReal": null,
"field": "f_tenant_id",
"fieldName": "租户id",
"identity": 0,
"primaryKey": 1
}
],
"relationField": "F_Id",
"table": "test_details",
"tableName": "应收费用明细表"
}
]