1

工作人员需要通过 controlTests。每个测试包含 50 个对照,分为 5 个类别,例如:

  • 第 1 类:“消防安全”。
  • 控制:“灭火器”、“紧急出口”、“消防服务”

  • Category2:“防盗系统”......

将来可以添加更多类别。此外,还可以向现有或新类别添加更多控件。

对于每个控件,工作人员必须填写 3 个检查控件

前任:

  • 第 1 类: “消防安全”。
  • 控制 1: “灭火器”
  • 每天检查吗?(真假)
  • 去年用过吗?(真假)
  • 重要性级别(1 到 5)

该系统将有数千名工人每周通过许多控制测试。

这些是我的模型表

**controlCategory Table:**  PK: idCategory
idCategory | name | ...
1          | Fire security
2          | Anti thief system

**controlSubCategory Table:**      PK: idSubCategory
idSubCategory | idCategory | name             | ...
1             | 1          | Extinguisher
2             | 1          | Emergency exit
3             | 2          | Alarm

**controlTest Table:**           PK: idControlTest + idSubCategory
idControlTest | idSubCategory | CheckedDaily | UsedLastYear | Importance
1             | 1             |true          | false        |2
1             | 2             |true          | true         |2
1             | 3             |true          | false        |4
1             | 4             |false         | false        |3
1             | 5             |false         | true         |3
.......
1             | 50            |true          | true         |5
2             | 1             |false         | false        |1
2             | 2             |true          | false        |2
2             | 3             |true          | true         |4


**workerTest Table:**   PK: idControlTest
idControlTest | idWorker
1             |100
2             |323
3             |15
4             |255
5             |100

在速度和效率方面,您会认为这个模式是有效的还是您会对其进行任何更改?

4

0 回答 0