Schema for comment likes.
Tracks which users have liked which comments. Enforces one like per user per comment.
Fields
comment_id- Reference to the commentuser_id- Reference to the user who liked
Examples
# User likes a comment
%CommentLike{
comment_id: "018e3c4a-9f6b-7890-abcd-ef1234567890",
user_id: 42
}
Summary
Functions
Changeset for creating a comment like.
Types
@type t() :: %PhoenixKit.Modules.Posts.CommentLike{ __meta__: term(), comment: PhoenixKit.Modules.Posts.PostComment.t() | Ecto.Association.NotLoaded.t(), comment_id: UUIDv7.t(), id: UUIDv7.t() | nil, inserted_at: NaiveDateTime.t() | nil, updated_at: NaiveDateTime.t() | nil, user: PhoenixKit.Users.Auth.User.t() | Ecto.Association.NotLoaded.t(), user_id: integer() }