# Sub Dictionary: `tbl_iOSPromotions`

## Table Info

| Property | Value |
|----------|-------|
| Table | `tbl_iOSPromotions` |
| Database | quitsure |
| Connection | `mysql` |
| Engine | InnoDB |
| Type | TABLE |
| Category | Subscription/iOS |
| Laravel Model | `IosPromotion` (app/Models/IosPromotion.php) |
| Comment | iOS App Store promotional offer codes mapped per program / product / discount |

## Columns

| # | Column | Type | Nullable | Default | Key | Extra | Description |
|---|--------|------|----------|---------|-----|-------|-------------|
| 1 | `Id` | `int unsigned` | NO | - | PRI | auto_increment | Integer: Primary Key |
| 2 | `iProgramId` | `int unsigned` | NO | - | MUL | - | Integer: Program Id (likely FK) |
| 3 | `vProductId` | `varchar(255)` | NO | - | MUL | - | Varchar: App Store product identifier |
| 4 | `iDiscount` | `tinyint unsigned` | NO | - | - | - | Integer: Discount percentage applied to this promo |
| 5 | `vIOSOfferCodeId` | `varchar(255)` | NO | - | - | - | Varchar: iOS App Store offer code identifier |
| 6 | `bActive` | `tinyint(1)` | NO | `1` | - | - | Boolean/Flag: Whether the promotion is currently active |
| 7 | `dDateCreated` | `datetime` | NO | `CURRENT_TIMESTAMP` | - | DEFAULT_GENERATED | Datetime: Date Created |

## Indexes

| Name | Columns | Unique | Type |
|------|---------|--------|------|
| `PRIMARY` | `Id` | YES | BTREE |
| `idx_product_discount_active` | `vProductId`, `iDiscount`, `bActive` | NO | BTREE |
| `idx_program` | `iProgramId` | NO | BTREE |

## Foreign Keys

### Formal Foreign Keys

None defined.

### Implicit Relationships (from column naming)

| Column | Likely References |
|--------|------------------|
| `iProgramId` | `tbl_Programs.iProgramID` |