renamed threadTypeId to refCommentTypeId in comment model