# `sysapi`

> 自定义API


- **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 | MUL |  |  | 标准Id |
| 3 | `sBrandsId` | `varchar(100)` | NO |  |  |  | 加工商Id |
| 4 | `sSubsidiaryId` | `varchar(100)` | NO |  |  |  | 子公司ID |
| 5 | `tCreateDate` | `datetime` | NO |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED | 制单日期 |
| 6 | `sMakePerson` | `varchar(50)` | NO |  |  |  | 制单人 |
| 7 | `sApiName` | `varchar(50)` | NO | MUL |  |  | 接口名称 |
| 8 | `bHasToken` | `bit(1)` | NO |  | b'1' |  | 是否令牌校验 |
| 9 | `sApiUrl` | `varchar(500)` | NO |  |  |  | 请求路径 |
| 10 | `sApiCode` | `varchar(50)` | NO |  |  |  | 接口编码 |
| 11 | `sMethod` | `varchar(10)` | NO |  |  |  | 请求方式 |
| 12 | `sHeader` | `longtext` | YES |  |  |  | 头部信息 |
| 13 | `sBody` | `longtext` | YES |  |  |  | 请求体 |
| 14 | `sBodyNode` | `longtext` | YES |  |  |  | 请求体注释 |
| 15 | `sBodyType` | `varchar(255)` | NO |  | GET |  | 请求方式 |
| 16 | `sDataSql` | `varchar(255)` | NO |  |  |  | 数据源配置 |
| 17 | `sDataTest` | `longtext` | YES |  |  |  | 响应预览 |
| 18 | `sDataTestNode` | `longtext` | YES |  |  |  | 响应预览注释 |

## Indexes

| Name | Unique | Type | Columns |
|---|---|---|---|
| `IndexN_1` |  | BTREE | `sApiName`, `sBrandsId`, `sSubsidiaryId` |
| `IndexU_1` | ✓ | BTREE | `sId`, `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._
