# Sub Dictionary: `tbl_UserProfile`

## Table Info

| Property | Value |
|----------|-------|
| Table | `tbl_UserProfile` |
| Database | quitsure |
| Connection | `mysql` |
| Engine | InnoDB |
| Type | TABLE |
| Category | User |
| Laravel Model | `UserProfile` (app/Models/UserProfile.php) |

## Columns

| # | Column | Type | Nullable | Default | Key | Extra | Description |
|---|--------|------|----------|---------|-----|-------|-------------|
| 1 | `iUserID` | `int` | NO | - | PRI | - | Integer: User ID (likely FK) |
| 2 | `vName` | `varchar(50)` | YES | NULL | - | - | Varchar: Name |
| 3 | `vProfilePic` | `varchar(500)` | YES | NULL | - | - | Varchar: Profile Pic |
| 4 | `setNicotineTypes` | `varchar(500)` | YES | NULL | - | - | Set/Comma-separated: Nicotine Types |
| 5 | `bAlreadyQuit` | `tinyint` | YES | `0` | MUL | - | Boolean/Flag: Already Quit |
| 6 | `iStartedSmoking` | `int` | YES | NULL | MUL | - | Integer: Started Smoking |
| 7 | `iSmokingCigarettes` | `int` | YES | NULL | MUL | - | Integer: Smoking Cigarettes |
| 8 | `vMode` | `varchar(50)` | YES | NULL | MUL | - | Varchar: Mode |
| 9 | `decSmokePerDay` | `decimal(10,2)` | YES | NULL | MUL | - | Decimal: Smoke Per Day |
| 10 | `vCurrencyCode` | `varchar(50)` | YES | NULL | MUL | - | Varchar: Currency Code |
| 11 | `vPayCurrency` | `varchar(20)` | YES | NULL | - | - | Varchar: Pay Currency |
| 12 | `decPayPrice` | `decimal(18,2)` | YES | NULL | - | - | Decimal: Pay Price |
| 13 | `iPayMode` | `int` | YES | NULL | MUL | - | Integer: Pay Mode |
| 14 | `decCostPerMonth` | `decimal(18,2)` | YES | NULL | - | - | Decimal: Cost Per Month |
| 15 | `bPayReject` | `tinyint` | YES | NULL | MUL | - | Boolean/Flag: Pay Reject |
| 16 | `bPaid` | `tinyint` | YES | NULL | MUL | - | Boolean/Flag: Paid |
| 17 | `iPayCategory` | `int` | YES | NULL | - | - | Integer: Pay Category |
| 18 | `iTotalSmoked_old` | `int` | YES | `0` | - | - | Integer: Total Smoked_old |
| 19 | `bCommunityAnon` | `tinyint` | YES | `0` | - | - | Boolean/Flag: Community Anon |

## Indexes

| Name | Columns | Unique | Type |
|------|---------|--------|------|
| `idx_tbl_userprofile_bAlreadyQuit` | `bAlreadyQuit` | NO | BTREE |
| `idx_tbl_userprofile_bPaid` | `bPaid` | NO | BTREE |
| `idx_tbl_userprofile_bPayReject` | `bPayReject` | NO | BTREE |
| `idx_tbl_userprofile_decSmokePerDay` | `decSmokePerDay` | NO | BTREE |
| `idx_tbl_userprofile_iPayMode` | `iPayMode` | NO | BTREE |
| `idx_tbl_userprofile_iSmokingCigarettes` | `iSmokingCigarettes` | NO | BTREE |
| `idx_tbl_userprofile_iStartedSmoking` | `iStartedSmoking` | NO | BTREE |
| `idx_tbl_userprofile_vCurrencyCode` | `vCurrencyCode` | NO | BTREE |
| `idx_tbl_userprofile_vMode` | `vMode` | NO | BTREE |
| `PRIMARY` | `iUserID` | YES | BTREE |

## Foreign Keys

### Formal Foreign Keys

| Constraint | Column | References |
|-----------|--------|------------|
| `FK_Profile_iUserID` | `iUserID` | `tbl_Users`.`iUserID` |

