Create a model for id based objects.