use type_id as default attachmentType column name