# `sysbillnosettings`

> 单据编号


- **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 | MUL |  |  | 加工商ID |
| 4 | `sSubsidiaryId` | `varchar(100)` | NO |  |  |  | 子公司ID |
| 5 | `tCreateDate` | `datetime` | NO |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED | 创建时间 |
| 6 | `sMakePerson` | `varchar(100)` | NO |  |  |  | 制单人 |
| 7 | `iOrder` | `int` | NO |  | 0 |  | 排序 |
| 8 | `sFormId` | `varchar(100)` | NO |  |  |  | 窗体ID |
| 9 | `sBillNoTitle` | `varchar(255)` | NO |  |  |  | 单据抬头 |
| 10 | `sStatusType` | `varchar(11)` | NO |  | 1 |  | 单据状态类型 |
| 11 | `bAutoCheck` | `bit(1)` | NO |  | b'0' |  | 自动审核 |
| 12 | `bPrint` | `bit(1)` | NO |  | b'0' |  | 是否打印 |
| 13 | `sBillNoType` | `varchar(255)` | NO |  |  |  | 单据编号类型 |
| 14 | `iBillNoLength` | `int` | NO |  | 8 |  | 流水号长度 |
| 15 | `bModify` | `bit(1)` | NO |  | b'0' |  | 是否直接可修改 |
| 16 | `sColumnNames` | `varchar(500)` | YES |  |  |  | 单据号自定（自定义字段拼接） |
| 17 | `sReset` | `varchar(20)` | NO |  |  |  | {"year":"年重置","month":"月重置","day":"日重置","number":"流水号"} |
| 18 | `iColumnNamesLength` | `int` | YES |  | 3 |  | 单据号自定义流水号位数 |
| 19 | `sSrcFormId` | `varchar(100)` | YES |  |  |  | 保持一致窗体ID |

## Indexes

| Name | Unique | Type | Columns |
|---|---|---|---|
| `IndexN_gdslogininfo` |  | BTREE | `sId`, `sBrandsId`, `sSubsidiaryId`, `sFormId` |
| `IndexU_gdslogininfo` | ✓ | BTREE | `sId`, `sBrandsId`, `sSubsidiaryId` |
| `IndexU_gdsloginInfoNo` | ✓ | BTREE | `sBrandsId`, `sSubsidiaryId`, `sFormId` |
| `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._
