generated from CubeCraft-Creations/Tracehound
8e6cd11d9c
modernc/sqlite returns a COALESCE() expression as a raw string (no column type affinity), which can't scan into *time.Time. Drop the COALESCE on the timestamp and scan the plain DATETIME column (which modernc returns as time.Time) through sql.NullTime, so a camera with no status row yet lists with a zero time instead of erroring out the whole list. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>