package cn.qinys.platform.entity.wishing;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("chat_message")
public class ChatMessage extends BaseEntity {

    @TableId(type = IdType.AUTO)
    private Long id;

    /** 用户标识 */
    private String userId;

    /** 关联许愿树 ID */
    private Integer treeId;

    /** 角色：user / ai */
    private String role;

    /** 消息内容 */
    private String content;

    private String type;
}
