# Table: `work_order_checklist`

Stores checklist items for Work Orders.

## Columns

| Column | Type | Null | Default | Notes |
|--------|------|------|---------|-------|
| `work_order_id` | `TEXT` | no | none | Parent Work Order. References `work_orders(id)`. |
| `item_id` | `TEXT` | no | none | Checklist item ID. |
| `text` | `TEXT` | no | `''` | Checklist item text. |
| `status` | `TEXT` | no | `'pending'` | Item state. |
| `owner` | `TEXT` | no | `''` | Optional owner. |
| `notes` | `TEXT` | no | `''` | Operator notes. |
| `updated_at` | `TEXT` | no | `''` | Item update timestamp. |

## Keys And Indexes

- Primary key: `(work_order_id, item_id)`

## Relationships

- `work_order_id` references `work_orders(id)` with `ON UPDATE CASCADE ON DELETE CASCADE`

## Definition

```sql
CREATE TABLE IF NOT EXISTS work_order_checklist (
    work_order_id TEXT NOT NULL,
    item_id TEXT NOT NULL,
    text TEXT NOT NULL DEFAULT '',
    status TEXT NOT NULL DEFAULT 'pending',
    owner TEXT NOT NULL DEFAULT '',
    notes TEXT NOT NULL DEFAULT '',
    updated_at TEXT NOT NULL DEFAULT '',
    PRIMARY KEY (work_order_id, item_id),
    FOREIGN KEY (work_order_id) REFERENCES work_orders(id) ON UPDATE CASCADE ON DELETE CASCADE
);
```
