# `plat_shop_integral`

> 平台店铺积分表


- **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 | MUL |  |  | 修改时间 |
| 4 | `sShopUserId` | `varchar(35)` | NO | MUL |  |  | 店铺用户编号 |
| 5 | `sIntegralId` | `varchar(35)` | NO | UNI |  |  | 积分编号(P_ITG开头) |
| 6 | `sIntegralName` | `varchar(50)` | NO |  |  |  | 积分名称 |
| 7 | `iIntegralType` | `tinyint` | NO |  |  |  | 积分类型(0:用户注册,1:充值审核,2:订单审核) |
| 8 | `dUseAmount` | `decimal(18,2)` | YES |  |  |  | 使用金额 |
| 9 | `iGiveIntegralAmount` | `mediumint` | NO |  |  |  | 赠送积分金额 |
| 10 | `iStatus` | `tinyint` | NO |  | 1 |  | 状态(0:不可用,1:可用) |

## Indexes

| Name | Unique | Type | Columns |
|---|---|---|---|
| `PLAT_SHOP_INTEGRAL_IDX1` |  | BTREE | `sShopUserId` |
| `PLAT_SHOP_INTEGRAL_IDX2` |  | BTREE | `tModifyTime` |
| `PLAT_SHOP_INTEGRAL_UNQ1` | ✓ | BTREE | `sIntegralId` |
| `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._
