Added unique constraint for device_id field in Device model