# `sysmesmsg`

> MES提示信息表


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

## Columns

| # | Name | Type | Null | Key | Default | Extra | Comment |
|---|---|---|---|---|---|---|---|
| 1 | `iIncrement` | `int` | NO | PRI |  | auto_increment | 自增列 |
| 2 | `sId` | `varchar(50)` | NO | MUL |  |  | 标准ID |
| 3 | `sBrandsId` | `varchar(50)` | NO |  |  |  | 加工商ID |
| 4 | `sSubsidiaryId` | `varchar(50)` | NO |  |  |  | 子公司ID |
| 5 | `tCreateDate` | `datetime` | NO |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED | 制单日期 |
| 6 | `sMakePerson` | `varchar(50)` | NO |  |  |  | 制单人 |
| 7 | `sType` | `varchar(20)` | NO |  | system |  | 类型（system:系统提示,artificial:发送消息） |
| 8 | `sSendPerson` | `varchar(50)` | NO |  | admin |  | 发送人 |
| 9 | `sReceiveId` | `varchar(50)` | NO | MUL |  |  | 接收人Id |
| 10 | `sReceiveName` | `varchar(50)` | NO |  |  |  | 接收人名称 |
| 11 | `sContent` | `text` | YES |  |  |  | 发送内容 |
| 12 | `bInvalid` | `bit(1)` | NO |  | b'0' |  | 是否作废 |
| 13 | `sMemo` | `text` | YES |  |  |  | 发送内容 |
| 14 | `sStatus` | `varchar(10)` | NO |  | unread |  | 消息状态：unread 未读，read ：已读 delete:已删除 |
| 15 | `tUpdateDate` | `datetime` | NO |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED | 制单日期 |

## Indexes

| Name | Unique | Type | Columns |
|---|---|---|---|
| `IndexU_sisunit` | ✓ | BTREE | `sId`, `sBrandsId`, `sSubsidiaryId` |
| `IndexU_sReceiveId` |  | BTREE | `sReceiveId`, `sType` |
| `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._
