# Sub Dictionary: `tbl_{X}Forms`

> Pattern template - applies to **17 tables** (programs: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)
> Representative table: `tbl_1Forms` (program 1)

## Table Info

| Property | Value |
|----------|-------|
| Pattern | `tbl_{X}Forms` |
| Database | quitsure |
| Connection | `mysql` |
| Engine | InnoDB |
| Laravel Model | `Form` (app/Models/Form.php) |
| Table Resolution | `Form::forProgram($programId)` |

### Actual Tables

| Program | Table Name |
|---------|------------|
| 1 | `tbl_1Forms` |
| 2 | `tbl_2Forms` |
| 3 | `tbl_3Forms` |
| 4 | `tbl_4Forms` |
| 5 | `tbl_5Forms` |
| 6 | `tbl_6Forms` |
| 7 | `tbl_7Forms` |
| 8 | `tbl_8Forms` |
| 9 | `tbl_9Forms` |
| 10 | `tbl_10Forms` |
| 11 | `tbl_11Forms` |
| 12 | `tbl_12Forms` |
| 13 | `tbl_13Forms` |
| 14 | `tbl_14Forms` |
| 15 | `tbl_15Forms` |
| 16 | `tbl_16Forms` |
| 17 | `tbl_17Forms` |

## Columns

| # | Column | Type | Nullable | Default | Key | Extra | Description |
|---|--------|------|----------|---------|-----|-------|-------------|
| 1 | `iFormID` | `int unsigned` | NO | - | PRI | auto_increment | Integer: Form ID (likely FK) |
| 2 | `iDayID` | `int unsigned` | YES | NULL | MUL | - | Integer: Day ID (likely FK) |
| 3 | `vFormName` | `varchar(150)` | YES | NULL | - | - | Varchar: Form Name |
| 4 | `vContent` | `mediumtext` | YES | NULL | - | - | Varchar: Content |
| 5 | `vBackgroundImg` | `varchar(150)` | YES | NULL | - | - | Varchar: Background Img |
| 6 | `iImgWidth` | `smallint unsigned` | YES | NULL | - | - | Integer: Img Width |
| 7 | `iImgHeight` | `smallint unsigned` | YES | NULL | - | - | Integer: Img Height |
| 8 | `bActive` | `tinyint(1)` | YES | NULL | - | - | Boolean/Flag: Active |
| 9 | `bDeleted` | `tinyint(1)` | YES | NULL | MUL | - | Boolean/Flag: Deleted |
| 10 | `dDateCreated` | `datetime` | YES | `CURRENT_TIMESTAMP` | - | DEFAULT_GENERATED | Datetime: Date Created |
| 11 | `dDateUpdated` | `datetime` | YES | NULL | - | - | Datetime: Date Updated |
| 12 | `bFree` | `tinyint(1)` | YES | `0` | - | - | Boolean/Flag: Free |
| 13 | `iNum` | `int` | NO | `1` | - | - | Integer: Num |
| 14 | `iABTest` | `int` | NO | `0` | - | - | Integer: AB Test |
| 15 | `bOptional` | `tinyint(1)` | NO | `0` | - | - | Boolean/Flag: Optional |
| 16 | `bTool` | `tinyint(1)` | NO | `0` | - | - | Boolean/Flag: Tool |
| 17 | `bOnlyTool` | `tinyint(1)` | NO | `0` | - | - | Boolean/Flag: Only Tool |

## Indexes

| Name | Columns | Unique | Type |
|------|---------|--------|------|
| `idx_tbl_Forms_bDeleted` | `bDeleted` | NO | BTREE |
| `idx_tbl_Forms_iDayID` | `iDayID` | NO | BTREE |
| `idx_tbl_Forms_iFormID` | `iFormID` | NO | BTREE |
| `PRIMARY` | `iFormID` | YES | BTREE |

## Foreign Keys

### Formal Foreign Keys

None defined.

### Implicit Relationships (from column naming)

| Column | Likely References |
|--------|------------------|
| `iDayID` | `tbl_{X}Days.iDayID (program-specific)` |

## Laravel Eloquent Relationships

| Method | Type | Related Model | Foreign Key |
|--------|------|--------------|-------------|
| `day()` | belongsTo | `Day` | `iDayID` |
