# `mftproductchange`

> 工艺变更记录表


- **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 | `sMakePerson` | `varchar(255)` | NO |  |  |  | 制单人 |
| 6 | `iOrder` | `int` | NO |  | 0 |  | 排序号 |
| 7 | `sParentId` | `varchar(100)` | NO |  |  |  | 父级ID |
| 8 | `sWorkOrderNo` | `varchar(255)` | YES |  |  |  | 工单号 |
| 9 | `sWorkOrderId` | `varchar(100)` | YES |  |  |  | 工单Id |
| 10 | `sChangeMemo` | `text` | YES |  |  |  | 变更内容 |
| 11 | `sChangeNo` | `varchar(255)` | YES |  |  |  | 变更编号 |
| 12 | `iChangeCount` | `int` | YES |  |  |  | 变更次数 |
| 13 | `sHReserve1` | `varchar(255)` | YES |  |  |  | 预留字符1 |
| 14 | `sHReserve2` | `varchar(255)` | YES |  |  |  | 预留字符2 |
| 15 | `sHReserve3` | `varchar(255)` | YES |  |  |  | 预留字符3 |
| 16 | `sHReserve4` | `varchar(255)` | YES |  |  |  | 预留字符4 |
| 17 | `sHReserve5` | `varchar(255)` | YES |  |  |  | 预留字符5 |
| 18 | `sHReserve6` | `varchar(255)` | YES |  |  |  | 预留字符6 |
| 19 | `dHReserve1` | `decimal(18,6)` | YES |  |  |  | 预留数字1 |
| 20 | `dHReserve2` | `decimal(18,6)` | YES |  |  |  | 预留数字2 |
| 21 | `dHReserve3` | `decimal(18,6)` | YES |  |  |  | 预留数字3 |
| 22 | `iHReserve1` | `int` | YES |  |  |  | 预留整型1 |
| 23 | `iHReserve2` | `int` | YES |  |  |  | 预留整型2 |
| 24 | `iHReserve3` | `int` | YES |  |  |  | 预留整型3 |
| 25 | `tHReserve1` | `datetime` | YES |  |  |  | 预留日期1 |
| 26 | `tHReserve2` | `datetime` | YES |  |  | on update CURRENT_TIMESTAMP | 预留日期2 |
| 27 | `sBillNo` | `varchar(100)` | YES |  |  |  | 申请单号 |
| 28 | `sFormId` | `varchar(100)` | YES |  |  |  | 申请单窗体 |
| 29 | `tCreateDate` | `datetime` | NO |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED | 制单日期 |
| 30 | `bCheck` | `bit(1)` | NO |  | b'0' |  | 审核 |
| 31 | `bInvalid` | `bit(1)` | NO |  | b'0' |  | 作废 |
| 32 | `tCheckDate` | `datetime` | YES |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED | 审核日期 |
| 33 | `sCheckPerson` | `varchar(255)` | YES |  |  |  | 审核人员 |
| 34 | `sChangeReason` | `varchar(255)` | YES |  |  |  | 旧产品处理 |
| 35 | `sCustomerId` | `varchar(255)` | YES |  |  |  | 客户id |
| 36 | `sCustomerName` | `varchar(255)` | YES |  |  |  | 客户名称 |
| 37 | `sFileType` | `varchar(255)` | YES |  |  |  | 旧文件处理方式 |
| 38 | `sProductId` | `varchar(255)` | YES |  |  |  | 产品id |
| 39 | `sProductName` | `varchar(255)` | YES |  |  |  | 产品名称 |
| 40 | `sProductTechnologNo` | `varchar(255)` | YES |  |  |  | 工艺卡号 |
| 41 | `sSendEmp` | `varchar(255)` | YES |  |  |  | 审核抄送人 |
| 42 | `sSrcId` | `varchar(255)` | NO |  |  |  | 原单id |
| 43 | `sSrcSlaveId` | `varchar(255)` | YES |  |  |  | 原单从表 |
| 44 | `sStatus` | `varchar(255)` | YES |  | 0 |  |  |

## Indexes

| Name | Unique | Type | Columns |
|---|---|---|---|
| `IndexN_mftproductchange` |  | BTREE | `sId`, `sBrandsId`, `sSubsidiaryId`, `sParentId` |
| `IndexU_mftproductchange` | ✓ | 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._
