# Sub Dictionary: `tbl_iOSRetentionRequests`

## Table Info

| Property | Value |
|----------|-------|
| Table | `tbl_iOSRetentionRequests` |
| Database | quitsure |
| Connection | `mysql` |
| Engine | InnoDB |
| Type | TABLE |
| Category | Subscription/iOS |
| Laravel Model | `IosRetentionRequest` (app/Models/IosRetentionRequest.php) |
| Comment | Tracks App Store Server Notifications V2 retention webhook requests received from Apple |

## Columns

| # | Column | Type | Nullable | Default | Key | Extra | Description |
|---|--------|------|----------|---------|-----|-------|-------------|
| 1 | `Id` | `int unsigned` | NO | - | PRI | auto_increment | Integer: Primary Key |
| 2 | `originalTransactionId` | `varchar(255)` | NO | - | MUL | - | Varchar: Apple original transaction identifier |
| 3 | `productId` | `varchar(255)` | NO | - | - | - | Varchar: App Store product identifier on the subscription |
| 4 | `bFound` | `int unsigned` | YES | NULL | - | - | Boolean/Flag: Whether a matching local user/subscription was found |
| 5 | `environment` | `varchar(255)` | NO | - | - | - | Varchar: Apple environment (`Sandbox` or `Production`) |
| 6 | `requestIdentifier` | `varchar(255)` | NO | - | MUL | - | Varchar: Apple webhook request identifier |
| 7 | `dDateCreated` | `datetime` | NO | `CURRENT_TIMESTAMP` | - | DEFAULT_GENERATED | Datetime: Date Created |
| 8 | `vSent` | `varchar(255)` | YES | NULL | - | - | Varchar: Outreach/offer sent in response (if any) |

## Indexes

| Name | Columns | Unique | Type |
|------|---------|--------|------|
| `PRIMARY` | `Id` | YES | BTREE |
| `idx_original_transaction` | `originalTransactionId` | NO | BTREE |
| `idx_request_identifier` | `requestIdentifier` | NO | BTREE |
| `idx_date_created` | `dDateCreated` | NO | BTREE |

## Foreign Keys

### Formal Foreign Keys

None defined.

### Implicit Relationships (from column naming)

| Column | Likely References |
|--------|------------------|
| `originalTransactionId` | `tbl_iOSListener2.originalTransactionId` |