# `plat_customer_order_statistics`

> 平台客户订单统计表


- **Engine:** InnoDB
- **Collation:** utf8mb3_general_ci

## Columns

| # | Name | Type | Null | Key | Default | Extra | Comment |
|---|---|---|---|---|---|---|---|
| 1 | `iIncreaseId` | `int` | NO | PRI |  | auto_increment | 主键(自增序列) |
| 2 | `tCreateTime` | `datetime` | NO |  |  |  | 创建时间 |
| 3 | `tModifyTime` | `datetime` | NO |  |  |  | 修改时间 |
| 4 | `sShopUserId` | `varchar(35)` | NO |  |  |  | 商铺用户编号 |
| 5 | `sCustomerUserId` | `varchar(35)` | NO | UNI |  |  | 客户用户编号 |
| 6 | `iOrderTotalCount` | `int` | NO |  | 0 |  | 订单总数 |
| 7 | `dOrderTotalMoney` | `decimal(18,2)` | NO |  | 0.00 |  | 订单总金额 |
| 8 | `dAvrgMoney` | `decimal(18,2)` | NO |  | 0.00 |  | 平均交易金额 |
| 9 | `tLastOrderTime` | `datetime` | YES |  |  |  | 上次下单时间 |
| 10 | `iOrderCloseCount` | `mediumint` | NO |  | 0 |  | 订单关闭总数 |
| 11 | `iIsLock` | `tinyint` | NO |  | 0 |  | 是否上锁(0:上锁,1:不上锁) |

## Indexes

| Name | Unique | Type | Columns |
|---|---|---|---|
| `PLAT_CUSTOMER_INFO_UNQ1` | ✓ | BTREE | `sCustomerUserId` |
| `PRIMARY` | ✓ | BTREE | `iIncreaseId` |

## 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._
