维修工相关数据库设计

This commit is contained in:
PQZ 2024-10-09 12:08:03 +08:00
parent 9c9e4aba0e
commit 6c230865c9
17 changed files with 264 additions and 45 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
"avatar": "", "avatar": "",
"version": "4.9.2", "version": "4.9.2",
"createdTime": "2024-10-9 10:34:15", "createdTime": "2024-10-9 10:34:15",
"updatedTime": "2024-10-9 11:24:57", "updatedTime": "2024-10-9 12:05:05",
"dbConns": [], "dbConns": [],
"profile": { "profile": {
"default": { "default": {
@ -14791,25 +14791,6 @@
"attr9": "", "attr9": "",
"uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE" "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
}, },
{
"defKey": "worker_id",
"defName": "维修工人id",
"comment": "",
"type": "",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
"extProps": {},
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
"id": "03C3CCE7-3E38-4A7A-93A8-461BC34A5A24",
"attr1": ""
},
{ {
"defKey": "code", "defKey": "code",
"defName": "编码", "defName": "编码",
@ -15194,16 +15175,7 @@
"baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64"
} }
], ],
"correlations": [ "correlations": [],
{
"myField": "03C3CCE7-3E38-4A7A-93A8-461BC34A5A24",
"refEntity": "B7EDCA3F-C43B-4DB1-B00C-0469F498B73A",
"refField": "217516A4-ADF4-43A6-ADA7-9EF34D3FC372",
"myRows": "1",
"refRows": "n",
"innerType": ""
}
],
"indexes": [], "indexes": [],
"type": "P" "type": "P"
}, },
@ -24596,7 +24568,7 @@
}, },
{ {
"defKey": "repair_id", "defKey": "repair_id",
"defName": "维修人员ID(system_users表的ID)", "defName": "维修人员ID支持多个(system_users表的ID)",
"comment": "", "comment": "",
"domain": "C3BDFF42-2DB6-4730-93DE-040ED6A740C2", "domain": "C3BDFF42-2DB6-4730-93DE-040ED6A740C2",
"type": "BIGINT", "type": "BIGINT",
@ -25158,7 +25130,8 @@
"type": "P", "type": "P",
"sysProps": { "sysProps": {
"nameTemplate": "{defKey}[{defName}]" "nameTemplate": "{defKey}[{defName}]"
} },
"notes": {}
}, },
{ {
"id": "02F5A38C-3015-4469-96C5-678874516113", "id": "02F5A38C-3015-4469-96C5-678874516113",
@ -26545,6 +26518,42 @@
"id": "217516A4-ADF4-43A6-ADA7-9EF34D3FC372", "id": "217516A4-ADF4-43A6-ADA7-9EF34D3FC372",
"baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64"
}, },
{
"defKey": "user_id",
"defName": "用户id",
"comment": "",
"type": "",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
"extProps": {},
"domain": "16120F75-6AA7-4483-868D-F07F511BB081",
"id": "A2AE3F8D-ED96-4524-87C0-C83010FABF06"
},
{
"defKey": "user_name",
"defName": "维修工人名称",
"comment": "",
"type": "",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
"extProps": {},
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
"id": "CC553D57-2A6C-4C6A-B012-C0562C24DD7A"
},
{ {
"defKey": "tenant_id", "defKey": "tenant_id",
"defName": "租户号", "defName": "租户号",
@ -26599,6 +26608,24 @@
"domain": "", "domain": "",
"id": "6FB0F620-C672-4FAA-8B06-D10DB85B87F8" "id": "6FB0F620-C672-4FAA-8B06-D10DB85B87F8"
}, },
{
"defKey": "remark",
"defName": "备注",
"comment": "",
"type": "",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
"extProps": {},
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
"id": "98DD1C0A-51C9-40A6-8DD2-CB9C27130EB0"
},
{ {
"defKey": "deleted", "defKey": "deleted",
"defName": "是否删除0代表存在 1代表删除", "defName": "是否删除0代表存在 1代表删除",
@ -26899,8 +26926,44 @@
"id": "FAB07701-87FC-4FF2-A315-0A78E8421890" "id": "FAB07701-87FC-4FF2-A315-0A78E8421890"
}, },
{ {
"defKey": "item", "defKey": "repair_titem_id",
"defName": "项目描述", "defName": "工单子表id",
"comment": "",
"type": "",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
"extProps": {},
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
"id": "E2679421-BD54-4F56-A0B9-C5CEE795273B"
},
{
"defKey": "type",
"defName": "记录类型repair_records_type",
"comment": "",
"type": "",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "FA06E5D8-DDE3-421D-B298-F3872448B80F",
"baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
"extProps": {},
"domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
"id": "EF5AD983-B18E-45C3-9ACA-471F0BEB2797"
},
{
"defKey": "remark",
"defName": "记录描述",
"comment": "", "comment": "",
"type": "", "type": "",
"len": "", "len": "",
@ -26916,6 +26979,60 @@
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
"id": "039BA4F9-81EC-47D7-85CF-EC0605FB5C80" "id": "039BA4F9-81EC-47D7-85CF-EC0605FB5C80"
}, },
{
"defKey": "image",
"defName": "过程记录中的图片(多个,拼接)",
"comment": "",
"type": "",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"baseType": "B17BDED3-085F-40E1-9019-3B79CF2BF075",
"extProps": {},
"domain": "AA4D5F74-732E-426C-A639-8842B4BC52B2",
"id": "F8C5FE81-D218-4562-94A4-78A48BDFFBEC"
},
{
"defKey": "deal_user_name",
"defName": "处理人",
"comment": "",
"type": "",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
"extProps": {},
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
"id": "3CD68E42-5AD4-4F13-B9E8-AEE45D039E75"
},
{
"defKey": "deal_user_id",
"defName": "处理人员工表id",
"comment": "",
"type": "",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
"extProps": {},
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
"id": "C0EEB995-7776-412F-8BCC-B5840516B5A2"
},
{ {
"defKey": "deleted", "defKey": "deleted",
"defName": "是否删除0代表存在 1代表删除", "defName": "是否删除0代表存在 1代表删除",
@ -27007,16 +27124,7 @@
"baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098" "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098"
} }
], ],
"correlations": [ "correlations": [],
{
"myField": "FAB07701-87FC-4FF2-A315-0A78E8421890",
"refEntity": "691D06BE-9875-46F5-8561-4A72FDEED138",
"refField": "B6D72555-B3D7-4E70-8106-87DD132059A8",
"myRows": "1",
"refRows": "n",
"innerType": ""
}
],
"indexes": [], "indexes": [],
"type": "P" "type": "P"
} }
@ -27808,6 +27916,99 @@
"intro": "", "intro": "",
"id": "DF437743-B1F7-4A14-8E22-1AE5391D41C8", "id": "DF437743-B1F7-4A14-8E22-1AE5391D41C8",
"items": [] "items": []
},
{
"defKey": "repair_records_type",
"defName": "维修记录类型",
"sort": "",
"intro": "维修记录类型",
"id": "FA06E5D8-DDE3-421D-B298-F3872448B80F",
"items": [
{
"defKey": "01",
"defName": "创建工单",
"sort": "",
"parentKey": "",
"intro": "",
"enabled": true,
"attr1": "",
"attr2": "",
"attr3": "",
"id": "EF9D56A0-354F-4ECE-A7F1-3A268B7DD5C9"
},
{
"defKey": "02",
"defName": "指派施工",
"sort": "",
"parentKey": "",
"intro": "",
"enabled": true,
"attr1": "",
"attr2": "",
"attr3": "",
"id": "F1CC7C42-A67E-4A3D-93D4-293CC61D8B8C"
},
{
"defKey": "03",
"defName": "领料",
"sort": "",
"parentKey": "",
"intro": "",
"enabled": true,
"attr1": "",
"attr2": "",
"attr3": "",
"id": "F6FDFA3F-BD8F-474D-A245-08E15BE24A10"
},
{
"defKey": "04",
"defName": "退料",
"sort": "",
"parentKey": "",
"intro": "",
"enabled": true,
"attr1": "",
"attr2": "",
"attr3": "",
"id": "E871CEC6-C64F-49EB-A993-4C4324393931"
},
{
"defKey": "05",
"defName": "施工完成(自检)",
"sort": "",
"parentKey": "",
"intro": "",
"enabled": true,
"attr1": "",
"attr2": "",
"attr3": "",
"id": "3CEB761C-30F0-4E31-A087-FD427F444909"
},
{
"defKey": "06",
"defName": "总检",
"sort": "",
"parentKey": "",
"intro": "",
"enabled": true,
"attr1": "",
"attr2": "",
"attr3": "",
"id": "229927DA-362A-4753-BF1A-C6B14A5FDBAD"
},
{
"defKey": "07",
"defName": "结束工单",
"sort": "",
"parentKey": "",
"intro": "",
"enabled": true,
"attr1": "",
"attr2": "",
"attr3": "",
"id": "D0490B12-C82B-40EF-9ECC-DCD92404DEEA"
}
]
} }
], ],
"viewGroups": [ "viewGroups": [
@ -27914,7 +28115,9 @@
"refDiagrams": [ "refDiagrams": [
"54AD1509-B33B-4C81-A2DF-2AD78C46AF19" "54AD1509-B33B-4C81-A2DF-2AD78C46AF19"
], ],
"refDicts": [], "refDicts": [
"FA06E5D8-DDE3-421D-B298-F3872448B80F"
],
"id": "5322F932-F0DC-4D8C-B003-D8B3BA374283" "id": "5322F932-F0DC-4D8C-B003-D8B3BA374283"
}, },
{ {