# `sys_msg`

> 系统发送消息表


- **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 |  |  |  | 消息ID |
| 3 | `sBrandsId` | `varchar(50)` | YES |  |  |  | 公司 |
| 4 | `sSubsidiaryId` | `varchar(50)` | YES |  |  |  | 子公司 |
| 5 | `sMakePerson` | `varchar(50)` | YES |  |  |  | 创建人 |
| 6 | `tCreateDate` | `datetime` | NO |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED | 创建时间 |
| 7 | `sUserId` | `varchar(50)` | YES | MUL |  |  | 更新者 |
| 8 | `sUserName` | `varchar(50)` | YES |  |  |  | 更新时间 |
| 9 | `iOrder` | `int` | NO |  | 0 |  | 序号 |
| 10 | `sType` | `char(1)` | NO |  | 0 |  | 消息类型(0:系统消息,1:发送消息) |
| 11 | `sTitle` | `longtext` | YES |  |  |  | 消息标题 |
| 12 | `sContent` | `longtext` | YES |  |  |  | 消息内容 |
| 13 | `sContentMemo` | `longtext` | YES |  |  |  | HTML的消息内容 |
| 14 | `sFilesAdressees` | `longtext` | YES |  |  |  | 发送附件地址 |
| 15 | `is_view` | `bit(1)` | NO | MUL | b'0' |  | 消息状态 |
| 16 | `sSrcBillId` | `varchar(50)` | NO |  |  |  | 源单ID |
| 17 | `sFormId` | `varchar(50)` | NO |  |  |  | 窗体ID |

## Indexes

| Name | Unique | Type | Columns |
|---|---|---|---|
| `IndexN_1` |  | BTREE | `sUserId`, `sBrandsId`, `sSubsidiaryId` |
| `IndexN_2` |  | BTREE | `is_view`, `sBrandsId`, `sSubsidiaryId` |
| `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._
