# `pitproductstorevirtual`

> 印件-虚拟库存明细表


- **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 | `sMakePerson` | `varchar(255)` | NO |  |  |  | 制单人 |
| 7 | `sProductId` | `varchar(100)` | NO |  |  |  | 产品ID |
| 8 | `dProductQty` | `decimal(18,6)` | NO |  |  |  | 库存数量 |
| 9 | `sFormId` | `varchar(100)` | NO |  |  |  | 窗体ID |
| 10 | `sBillId` | `varchar(100)` | NO |  |  |  | 单据ID |
| 11 | `sBillSlaveId` | `varchar(100)` | NO | MUL |  |  | 单据从表ID |
| 12 | `sBillNo` | `varchar(255)` | NO |  |  |  | 单据号 |
| 13 | `sMemo` | `text` | YES |  |  |  | 备注 |
| 14 | `tCreateDate` | `datetime` | NO |  |  |  | 制单日期 |

## Indexes

| Name | Unique | Type | Columns |
|---|---|---|---|
| `IndexN_PitProductStoreVirtual_BillSlaveId` |  | BTREE | `sBillSlaveId`, `sBillId` |
| `IndexU_eleproductstock` | ✓ | 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._
