make unit_type nullable, specify unique_together for timeseriesdata