Add idAttribute to model