# `sisbagtype`

> 袋型


- **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)` | YES | MUL |  |  | 唯一ID |
| 3 | `sBrandsId` | `varchar(50)` | YES | MUL |  |  | 加工商ID |
| 4 | `sSubsidiaryId` | `varchar(50)` | YES |  |  |  | 子公司ID |
| 5 | `tCreateDate` | `datetime` | NO |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED | 记账日期 |
| 6 | `sMakePerson` | `varchar(50)` | NO |  |  |  | 制单人 |
| 7 | `iOrder` | `int` | NO |  | 0 |  | 排序号 |
| 8 | `sName` | `varchar(100)` | NO |  |  |  | 袋型名称 |
| 9 | `sNo` | `varchar(50)` | YES |  |  |  | 编号 |
| 10 | `bInvalid` | `bit(1)` | NO |  | b'0' |  | 是否作废 |
| 11 | `sAllId` | `text` | YES |  |  |  | 树型所有Id |
| 12 | `sChildren` | `varchar(50)` | YES |  |  |  | 是否为最子级 |
| 13 | `sParentId` | `varchar(50)` | YES |  |  |  | 父级ID |
| 14 | `tMakeDate` | `datetime` | YES |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED | 制单日期 |
| 15 | `bReel` | `bit(1)` | YES |  | b'0' |  | 是否卷筒 |
| 16 | `sUnit` | `varchar(50)` | NO |  |  |  | 单位 |
| 17 | `bSpecialRules` | `bit(1)` | YES |  | b'0' |  | 自定规格 |
| 18 | `dDifficultyRate` | `decimal(18,6)` | YES |  | 0.000000 |  | 难易系数 |
| 19 | `sFormId` | `varchar(50)` | YES |  |  |  | 窗体ID |
| 20 | `bStrict` | `bit(1)` | YES |  | b'0' |  | 是否严格袋型 |
| 21 | `bSubmit` | `bit(1)` | YES |  | b'0' |  | 是否提交 |
| 22 | `bConfirm` | `bit(1)` | YES |  | b'0' |  | 是否确认 |
| 23 | `tUpdate` | `datetime` | YES |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED | 修改日期 |
| 24 | `sUpdatePerson` | `varchar(50)` | YES |  |  |  | 修改人 |
| 25 | `tSubmitDate` | `datetime` | YES |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED | 提交日期 |
| 26 | `sSubmitPerson` | `varchar(50)` | YES |  |  |  | 提交人 |
| 27 | `tConfirmDate` | `datetime` | YES |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED | 确认日期 |
| 28 | `sConfirmPerson` | `varchar(50)` | YES |  |  |  | 确认人 |
| 29 | `sWidthFormulaId` | `varchar(50)` | YES |  |  |  | 展开宽尺寸公式 |
| 30 | `sLengthFormulaId` | `varchar(50)` | YES |  |  |  | 展开长尺寸公式 |
| 31 | `sStructFormulaId` | `varchar(50)` | YES |  |  |  | 结构公式 |
| 32 | `sStruct` | `varchar(50)` | YES |  |  |  | 结构名称 |
| 33 | `sMaterialsLengthFormulaId` | `varchar(50)` | YES |  |  |  | 用料长尺寸公式 |
| 34 | `sMaterialsWidthFormulaId` | `varchar(50)` | YES |  |  |  | 用料宽尺寸公式 |
| 35 | `sStyle` | `varchar(50)` | NO |  |  |  | 规格 |
| 36 | `sSalesUnit` | `varchar(50)` | NO |  |  |  | 销售单位 |

## Indexes

| Name | Unique | Type | Columns |
|---|---|---|---|
| `IndexN_sismaterialsclassify` |  | BTREE | `sId`, `sBrandsId`, `sSubsidiaryId`, `sName` |
| `IndexU_sismaterialsclassify` | ✓ | BTREE | `sId`, `sBrandsId`, `sSubsidiaryId` |
| `IndexU_sismaterialsclassifyName` | ✓ | BTREE | `sBrandsId`, `sSubsidiaryId`, `sNo` |
| `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._
