Move id attribute to base model