V55: Standalone Comments Module
Creates polymorphic comments tables decoupled from the Posts module.
Comments can be attached to any resource type via resource_type + resource_id.
Tables
phoenix_kit_comments— threaded comments with polymorphic resource associationphoenix_kit_comments_likes— comment like trackingphoenix_kit_comments_dislikes— comment dislike tracking
Design
- Polymorphic:
resource_type(varchar) +resource_id(uuid), no FK constraints - Self-referencing
parent_idfor unlimited threading depth - Counter caches for
like_countanddislike_count - Status-based moderation (published/hidden/deleted/pending)
- Old
phoenix_kit_post_commentstables remain untouched