Get Fax Unread Count
Faxes
Get Fax Unread Count
Count inbound faxes still awaiting first acknowledgement.
Declared above GET /faxes/{fax_id} on purpose: FastAPI matches routes
in declaration order, and the parameterized path would otherwise swallow
/faxes/unread-count as fax_id="unread-count" and 404.
direction = INBOUND is defensive scoping — only inbound rows should
ever have NULL read_date (outbound is timestamped at creation), but
if a bug ever leaves an outbound row NULL it should not pollute the
badge. Backed by the partial index
ix_fax_read_date_inbound (direction) WHERE read_date IS NULL.
