# `biz_flow`


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

## Columns

| # | Name | Type | Null | Key | Default | Extra | Comment |
|---|---|---|---|---|---|---|---|
| 1 | `id` | `varchar(255)` | NO | PRI |  |  | 主键ID |
| 2 | `type` | `char(20)` | YES |  |  |  | 流程类型 |
| 3 | `sTypeName` | `varchar(255)` | NO |  |  |  | 流程名称 |
| 4 | `title` | `varchar(100)` | YES |  |  |  | 标题 |
| 5 | `reason` | `varchar(500)` | YES |  |  |  | 原因 |
| 6 | `start_time` | `datetime` | YES |  |  |  | 开始时间 |
| 7 | `end_time` | `datetime` | YES |  |  |  | 结束时间 |
| 8 | `total_time` | `bigint` | YES |  |  |  | 单位秒 |
| 9 | `instance_id` | `varchar(32)` | YES | MUL |  |  | 流程实例ID |
| 10 | `create_by` | `varchar(64)` | YES |  |  |  | 创建者 |
| 11 | `create_time` | `datetime` | YES |  |  |  | 创建时间 |
| 12 | `update_by` | `varchar(64)` | YES |  |  |  | 更新者 |
| 13 | `update_time` | `datetime` | YES |  |  |  | 更新时间 |
| 14 | `apply_user` | `varchar(64)` | YES | MUL |  |  | 申请人 |
| 15 | `apply_time` | `datetime` | YES |  |  |  | 申请时间 |
| 16 | `reality_start_time` | `datetime` | YES |  |  |  | 实际开始时间 |
| 17 | `reality_end_time` | `datetime` | YES |  |  |  | 实际结束时间 |
| 18 | `sBrandsId` | `varchar(255)` | NO | MUL |  |  | 公司 |
| 19 | `sSubsidiaryId` | `varchar(255)` | NO |  |  |  | 子公司 |
| 20 | `sTableParams` | `longtext` | YES |  |  |  | 单据需要显示的字段 |
| 21 | `sTableParamsValue` | `longtext` | YES |  |  |  | 单据需要显示的字段值 |
| 22 | `sSrcId` | `varchar(255)` | NO | MUL |  |  | 源单ID |
| 23 | `sSrcNo` | `varchar(255)` | NO |  |  |  | 源单号 |
| 24 | `sSrcFormId` | `varchar(255)` | NO |  |  |  | 源单据窗体ID |
| 25 | `sSrcReportData` | `longtext` | YES |  |  |  | 源单据报表数据 |
| 26 | `sMasterTableName` | `varchar(255)` | NO |  |  |  | 主表名称 |
| 27 | `sCalcProName` | `varchar(255)` | NO |  |  |  | 审核过程名称 |
| 28 | `sSrcReportBlob` | `longblob` | YES |  |  |  | 报表文件二进制 |
| 29 | `sDoCallPro` | `longtext` | YES |  |  |  | 流程通过执行的过程 |
| 30 | `bReturnStart` | `bit(1)` | NO |  | b'1' |  | 是否回退到起点 |

## Indexes

| Name | Unique | Type | Columns |
|---|---|---|---|
| `Index_1` | ✓ | BTREE | `id` |
| `Index_2` |  | BTREE | `instance_id`, `sBrandsId`, `sSubsidiaryId` |
| `Index_3` |  | BTREE | `apply_user`, `sBrandsId`, `sSubsidiaryId` |
| `Index_4` |  | BTREE | `sSrcId`, `sBrandsId`, `sSubsidiaryId` |
| `Index_5` |  | BTREE | `sBrandsId`, `sSubsidiaryId`, `sSrcFormId` |
| `PRIMARY` | ✓ | BTREE | `id` |

## 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._
