SQL Sensor missing properties

The SQL sensor at https://github.com/home-assistant/core/blob/0407a56fdfca0a36bda64d2c514e1dd9c97b28cb/homeassistant/components/sql/sensor.py

Is missing “unique_id” and “device_class”.