added id fields with orm type to discovery doc