package com.rj.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 沟通记录表
 * </p>
 *
 * @author 系统生成
 * @since 2025-01-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("communication_record")
@Schema(description="沟通记录表")
public class CommunicationRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID(UUID)")
    @TableId("id")
    private String id;

    @Schema(description = "租户ID")
    @TableField("tenant_id")
    private String tenantId;

    @Schema(description = "客户姓名")
    @TableField("customer_name")
    private String customerName;

    @Schema(description = "客户电话")
    @TableField("customer_phone")
    private String customerPhone;

    @Schema(description = "客户ID")
    @TableField("customer_id")
    private String customerId;

    @Schema(description = "沟通类型")
    @TableField("communication_type")
    private String communicationType;

    @Schema(description = "沟通时间")
    @TableField("communication_time")
    private LocalDateTime communicationTime;

    @Schema(description = "沟通内容")
    @TableField("communication_content")
    private String communicationContent;

    @Schema(description = "沟通结果")
    @TableField("communication_result")
    private String communicationResult;

    @Schema(description = "所属人姓名")
    @TableField("owner_name")
    private String ownerName;

    @Schema(description = "所属人电话")
    @TableField("owner_phone")
    private String ownerPhone;

    @Schema(description = "待办建议")
    @TableField("todo_suggestion")
    private String todoSuggestion;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @Schema(description = "状态：1-有效，0-删除")
    @TableField("status")
    private Integer status;

}
