Add attachment type to the model