请求支持:将 classification_results 表与其他表连接

谢谢,这很有帮助。

所以只是想确认一下——如果 target_type 是 ‘post’,那么我应该将 classification_results.target_id 连接到 posts.id,对吗?

而如果 target_type 是其他值,比如 ‘comment’,那么我应该将其连接到 comments 表,对吗?只是想确保我根据类型连接到了正确的表。