# `kpimodule`

> 系统模块配置


- **Engine:** InnoDB
- **Collation:** utf8mb3_general_ci

## Columns

| # | Name | Type | Null | Key | Default | Extra | Comment |
|---|---|---|---|---|---|---|---|
| 1 | `iIncrement` | `int` | NO | PRI |  | auto_increment | 自增列 |
| 2 | `sId` | `varchar(100)` | NO |  |  |  | 唯一ID |
| 3 | `sBrandsId` | `varchar(100)` | NO | MUL |  |  | 加工商ID |
| 4 | `sSubsidiaryId` | `varchar(100)` | NO |  |  |  | 子公司ID |
| 5 | `tCreateDate` | `datetime` | NO |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED | 制单日期 |
| 6 | `sMakePerson` | `varchar(255)` | NO |  |  |  | 制单人 |
| 7 | `iOrder` | `int` | NO |  | 0 |  | 排序号 |
| 8 | `sModelId` | `varchar(100)` | NO | MUL |  |  | 模块Id |
| 9 | `sParentId` | `varchar(100)` | NO |  |  |  | 父级ID |
| 10 | `bVisible` | `bit(1)` | NO |  | b'0' |  | 是否显示 |
| 11 | `sUnType` | `varchar(255)` | YES |  |  |  | 未清类型 |
| 12 | `sUnMemo` | `varchar(255)` | YES |  |  |  | 未清描述 |
| 13 | `sWorkFruit` | `varchar(255)` | YES |  |  |  | 工作成果 |
| 14 | `dLimitation` | `decimal(18,6)` | NO |  | 8.000000 |  | 工作时效 |
| 15 | `sLimitTime` | `varchar(255)` | NO |  | 16:00:00 |  | 关单时间 |
| 16 | `dreward` | `decimal(18,6)` | YES |  |  |  | 奖励 |
| 17 | `dpunishment` | `decimal(18,6)` | YES |  |  |  | 惩罚 |
| 18 | `bNotCanEmpty` | `decimal(18,6)` | YES |  |  |  | 惩罚 |
| 19 | `sWorkDate` | `varchar(20)` | NO |  | 08:00:00 |  | 上班时间 |
| 20 | `sChildFlow` | `varchar(255)` | NO |  |  |  | 子流程 |
| 21 | `iTimetype` | `int` | NO |  | 0 |  | 0:今日完成 1:次日完成 2:到货日完成 3:到货次日完成,4:开工前完成 5：自定义时间 |
| 22 | `sSchedule` | `varchar(255)` | YES |  |  |  | 查询字段 |
| 23 | `sTobeDone` | `varchar(10)` | YES |  |  |  | 总数 |
| 24 | `sToDayNum` | `varchar(10)` | YES |  |  |  | 今日 |
| 25 | `sResultModelId` | `varchar(255)` | YES |  |  |  | KPI目标窗体 |
| 26 | `sBig5WorkFruit` | `varchar(500)` | NO |  |  |  | 繁体工作成果 |
| 27 | `sEnglishWorkFruit` | `varchar(500)` | NO |  |  |  | 英文工作成果 |
| 28 | `sEnglishUnMemo` | `varchar(500)` | NO |  |  |  | 英文说明 |
| 29 | `sBig5UnMemo` | `varchar(500)` | NO |  |  |  | 繁体说明 |
| 30 | `sAllWhere` | `longtext` | YES |  |  |  | 个性化查询WHERE |
| 31 | `sChildDetailFlow` | `varchar(255)` | NO |  |  |  | 子流程细项 |
| 32 | `bEnable` | `bit(1)` | NO |  | b'1' |  |  |
| 33 | `sErroMsg` | `text` | YES |  |  |  |  |
| 34 | `sUnAiMemo` | `varchar(50)` | YES |  |  |  | AI描述 |

## Indexes

| Name | Unique | Type | Columns |
|---|---|---|---|
| `IndexN_1` |  | BTREE | `sBrandsId`, `sSubsidiaryId`, `sParentId` |
| `IndexU_1` | ✓ | BTREE | `sModelId`, `sBrandsId`, `sSubsidiaryId` |
| `IndexU_11` |  | BTREE | `sModelId` |
| `PRIMARY` | ✓ | BTREE | `iIncrement` |

## Narrative

_No human-written narrative yet — when this table is exercised by a [vertical slice](../../slices/index.md), link from there back to this page._
