add attachment model.