# `cahcustomerinit`

> 客户初期


- **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 | `tCreateDate` | `datetime` | NO |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED | 制单日期 |
| 6 | `sMakePerson` | `varchar(255)` | NO |  |  |  | 制单人 |
| 7 | `iOrder` | `int` | NO |  | 0 |  | 排序号 |
| 8 | `sCustomerId` | `varchar(100)` | NO | MUL |  |  | 客户Id |
| 9 | `dCheckingMoney` | `decimal(18,6)` | NO |  | 0.000000 |  | 对账金额 |
| 10 | `dNoCheckingMoney` | `decimal(18,6)` | NO |  | 0.000000 |  | 未对账金额 |
| 11 | `dNoInvoiceMoney` | `decimal(18,6)` | NO |  | 0.000000 |  | 未开票金额 |
| 12 | `dRealCheckMoney` | `decimal(18,6)` | NO |  | 0.000000 |  | 反写对账金额 |
| 13 | `dRealNoCheckingMoney` | `decimal(18,6)` | NO |  | 0.000000 |  | 反写未对账金额 |
| 14 | `dRealNoInvoiceMoney` | `decimal(18,6)` | NO |  | 0.000000 |  | 反写未开票金额 |
| 15 | `dReceiptMoney` | `decimal(18,6)` | NO |  | 0.000000 |  | 收款金额 |
| 16 | `sGetPayId` | `varchar(100)` | YES |  |  |  | 结算方式ID |
| 17 | `sTaxId` | `varchar(100)` | YES |  |  |  | 税率Id |
| 18 | `tReceiptDate` | `datetime` | YES |  |  |  | 收款日期 |
| 19 | `sMemo` | `text` | YES |  |  |  | 备注 |
| 20 | `bInvalid` | `bit(1)` | NO |  | b'0' |  | 是否作废 |
| 21 | `tCheckListDate` | `datetime` | YES |  |  |  | 对账日期 |
| 22 | `tDeliverDate` | `datetime` | YES |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED |  |
| 23 | `bFinance` | `bit(1)` | YES |  | b'0' |  |  |
| 24 | `bInvoiceComplete` | `bit(1)` | NO |  | b'0' |  | 是否强制完工 |
| 25 | `bSingleReceipt` | `bit(1)` | YES |  | b'0' |  |  |
| 26 | `dCurrencyRate` | `decimal(18,6)` | YES |  | 0.000000 |  | 汇率 |
| 27 | `dProductForeignMoney` | `decimal(18,6)` | YES |  | 0.000000 |  | 外币金额 |
| 28 | `dProductQty` | `decimal(18,6)` | YES |  | 0.000000 |  |  |
| 29 | `dReceiptForeignMoney` | `decimal(18,6)` | NO |  | 0.000000 |  | 外币收款金额 |
| 30 | `sBillNo` | `varchar(50)` | YES |  |  |  |  |
| 31 | `sCurrency` | `varchar(255)` | YES |  |  |  | 币别 |
| 32 | `sCustomerProductNo` | `varchar(50)` | YES |  |  |  |  |
| 33 | `sOrderId` | `varchar(100)` | YES |  |  |  |  |
| 34 | `sOrderNo` | `varchar(50)` | YES |  |  |  |  |
| 35 | `sProductId` | `varchar(100)` | NO |  |  |  | 产品Id |
| 36 | `sSlaveId` | `varchar(100)` | YES |  |  |  |  |
| 37 | `sSrcNo` | `varchar(100)` | YES |  |  |  |  |
| 38 | `sWorkOrderNo` | `varchar(50)` | YES |  |  |  |  |

## Indexes

| Name | Unique | Type | Columns |
|---|---|---|---|
| `IndexN_CahCustomerInit` |  | BTREE | `sId`, `sBrandsId`, `sSubsidiaryId`, `sCustomerId` |
| `IndexN_CahCustomerInitCustomerId` |  | BTREE | `sCustomerId` |
| `IndexU_CahCustomerInit` | ✓ | 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._
