# `sysaccountperiod`

> 会计期间


- **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 | `sPeriodId` | `varchar(100)` | YES |  |  |  | 会计期间 |
| 9 | `tStartDate` | `datetime` | YES |  |  |  | 开始日期 |
| 10 | `tEndDate` | `datetime` | YES |  |  |  | 结束日期 |
| 11 | `bFrozen` | `bit(1)` | NO |  | b'0' |  | 是否结账 |
| 12 | `tForzenDate` | `datetime` | YES |  |  |  | 结账日期 |
| 13 | `bAR` | `bit(1)` | NO |  | b'0' |  | 启用应收 |
| 14 | `bAP` | `bit(1)` | NO |  | b'0' |  | 启用应付 |
| 15 | `tARDate` | `datetime` | YES |  |  |  | 启用应收款日期 |
| 16 | `tAPDate` | `datetime` | YES |  |  |  | 启用应付款日期 |
| 17 | `bCashier` | `bit(1)` | NO |  | b'0' |  | 启用出纳 |
| 18 | `tCashierDate` | `datetime` | YES |  |  |  | 启用出纳日期 |
| 19 | `sCalCostPerson` | `varchar(255)` | YES |  |  |  | 成本核算人员 |
| 20 | `tCalCost` | `datetime` | YES |  |  |  | 成本核算日期 |
| 21 | `tCalMaterials` | `datetime` | YES |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED | 材料存货核算时间 |
| 22 | `tCalProducts` | `datetime` | YES |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED | 成品存货核算时间 |
| 23 | `bCalMaterials` | `bit(1)` | NO |  | b'0' |  | 是否材料存货核算 |
| 24 | `bCalProducts` | `bit(1)` | NO |  | b'0' |  | 是否成品存货核算 |
| 25 | `bCost` | `bit(1)` | NO |  | b'0' |  | 是否成本核算(否/是) |
| 26 | `sCalMaterials` | `varchar(255)` | NO |  |  |  | 材料存货核算人员 |
| 27 | `sCalProducts` | `varchar(255)` | NO |  |  |  | 成品存货核算人员 |

## Indexes

| Name | Unique | Type | Columns |
|---|---|---|---|
| `IndexU_sysaccountperiod` | ✓ | BTREE | `sId`, `sBrandsId`, `sSubsidiaryId` |
| `IndexU_sysaccountperiodNo` | ✓ | BTREE | `sBrandsId`, `sSubsidiaryId`, `sPeriodId` |
| `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._
