# `mftprocesschangematerials`

> 工单从表


- **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 | `iOrder` | `int` | NO |  | 0 |  | 排序号 |
| 6 | `sParentId` | `varchar(100)` | NO |  |  |  | 父级ID |
| 7 | `sMaterialsId` | `varchar(100)` | NO |  |  |  | 材料Id |
| 8 | `sSReserve1` | `varchar(255)` | YES |  |  |  | 预留字符1 |
| 9 | `sSReserve2` | `varchar(255)` | YES |  |  |  | 预留字符2 |
| 10 | `sSReserve3` | `varchar(255)` | YES |  |  |  | 预留字符3 |
| 11 | `sSReserve4` | `varchar(255)` | YES |  |  |  | 预留字符4 |
| 12 | `sSReserve5` | `varchar(255)` | YES |  |  |  | 预留字符5 |
| 13 | `sSReserve6` | `varchar(255)` | YES |  |  |  | 预留字符6 |
| 14 | `dSReserve1` | `decimal(18,6)` | YES |  |  |  | 预留数字1 |
| 15 | `dSReserve2` | `decimal(18,6)` | YES |  |  |  | 预留数字2 |
| 16 | `dSReserve3` | `decimal(18,6)` | YES |  |  |  | 预留数字3 |
| 17 | `iSReserve1` | `int` | YES |  |  |  | 预留整型1 |
| 18 | `iSReserve2` | `int` | YES |  |  |  | 预留整型2 |
| 19 | `iSReserve3` | `int` | YES |  |  |  | 预留整型3 |
| 20 | `tSReserve1` | `datetime` | YES |  |  |  | 预留日期1 |
| 21 | `tSReserve2` | `datetime` | YES |  |  |  | 预留日期2 |
| 22 | `sMakePerson` | `varchar(255)` | NO |  |  |  | 操作人 |
| 23 | `sSrcSlaveId` | `varchar(100)` | NO |  |  |  | 源单从表Id |
| 24 | `sSrcId` | `varchar(100)` | NO |  |  |  | 源单ID |
| 25 | `sOriginalMaterialsId` | `varchar(100)` | NO |  |  |  | 源材料名称 |
| 26 | `sType` | `varchar(255)` | NO |  |  |  | 类型 |
| 27 | `sBeforeAfter` | `varchar(255)` | NO |  |  |  | 置前置后 |
| 28 | `sMaterialsStyle` | `varchar(255)` | NO |  |  |  | 规格 |
| 29 | `sOriginalMaterialsStyle` | `varchar(255)` | NO |  |  |  | 源规格 |
| 30 | `dMaterialsKQty` | `decimal(18,6)` | NO |  | 0.000000 |  | 材料开数 |
| 31 | `dOriginalMaterialsKQty` | `decimal(18,6)` | NO |  | 0.000000 |  | 源材料开数 |
| 32 | `dOriginalMaterialsQty` | `decimal(18,6)` | NO |  | 0.000000 |  | 源换算数量 |
| 33 | `dMaterialsQty` | `decimal(18,6)` | NO |  | 0.000000 |  | 换算数量 |
| 34 | `dOriginalAuxiliaryQty` | `decimal(18,6)` | NO |  | 0.000000 |  | 源数量 |
| 35 | `dAuxiliaryQty` | `decimal(18,6)` | NO |  | 0.000000 |  | 数量 |
| 36 | `sWorkOrderId` | `varchar(100)` | NO |  |  |  | 工单id |
| 37 | `sWorkOrderNo` | `varchar(100)` | NO |  |  |  | 工单号 |
| 38 | `sPartsType` | `varchar(100)` | NO |  |  |  | 部件类型 |
| 39 | `sWorkOrderControlId` | `varchar(100)` | NO |  |  |  | 工单控制表Id |
| 40 | `bOriginalPurchaseComplete` | `bit(1)` | NO |  | b'0' |  | 源是否采购强制完工 |
| 41 | `bOriginalComComplete` | `bit(1)` | NO |  | b'0' |  | 源是否来料 |
| 42 | `bOriginalNotAuto` | `bit(1)` | NO |  | b'0' |  | 源是否手动修改 |
| 43 | `bPurchaseComplete` | `bit(1)` | NO |  | b'0' |  | 是否采购强制完工 |
| 44 | `bComComplete` | `bit(1)` | NO |  | b'0' |  | 是否来料 |
| 45 | `bNotAuto` | `bit(1)` | NO |  | b'0' |  | 是否手动修改 |
| 46 | `dWorkAuxiliaryQty` | `decimal(18,6)` | YES |  | 0.000000 |  | 材料总数量 |

## Indexes

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