# Sub Dictionary: `tbl_AppleOneTimeCodes`

## Table Info

| Property | Value |
|----------|-------|
| Table | `tbl_AppleOneTimeCodes` |
| Database | quitsure |
| Connection | `mysql` |
| Engine | InnoDB |
| Type | TABLE |
| Category | Core/Master |

## Columns

| # | Column | Type | Nullable | Default | Key | Extra | Description |
|---|--------|------|----------|---------|-----|-------|-------------|
| 1 | `id` | `int unsigned` | NO | - | PRI | auto_increment | Auto-increment primary key |
| 2 | `vCode` | `varchar(100)` | YES | NULL | UNI | - | Varchar: Code |
| 3 | `dExpiryDate` | `datetime` | YES | NULL | - | - | Datetime: Expiry Date |
| 4 | `iDiscount` | `int unsigned` | YES | `100` | - | - | Integer: Discount |
| 5 | `iProgramId` | `int unsigned` | YES | NULL | - | - | Integer: Program Id (likely FK) |
| 6 | `dDateCreated` | `datetime` | YES | `CURRENT_TIMESTAMP` | - | DEFAULT_GENERATED | Datetime: Date Created |
| 7 | `bUsed` | `tinyint` | YES | `0` | - | - | Boolean/Flag: Used |

## Indexes

| Name | Columns | Unique | Type |
|------|---------|--------|------|
| `PRIMARY` | `id` | YES | BTREE |
| `vCode_UNIQUE` | `vCode` | YES | BTREE |

## Foreign Keys

### Formal Foreign Keys

None defined.

### Implicit Relationships (from column naming)

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