package org.hzhub.crm.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hzhub.common.tenant.core.TenantEntity;

import java.util.Date;

/**
 * CRM线索跟进记录对象 crm_lead_follow
 *
 * @author hzhub
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("crm_lead_follow")
public class CrmLeadFollow extends TenantEntity {

    /**
     * 跟进ID
     */
    @TableId(value = "follow_id", type = IdType.ASSIGN_ID)
    private Long followId;

    /**
     * 线索ID
     */
    private Long leadId;

    /**
     * 跟进方式（字典：crm_follow_type）
     */
    private String followType;

    /**
     * 跟进内容
     */
    private String content;

    /**
     * AI摘要
     */
    private String aiSummary;

    /**
     * 下次跟进时间
     */
    private Date nextFollowTime;

    /**
     * 跟进人（关联 sys_user）
     */
    private Long followUserId;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @TableLogic
    private Integer delFlag;

    public CrmLeadFollow(Long followId) {
        this.followId = followId;
    }
}