package com.storlead.mail.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.storlead.framework.mybatis.entity.SysBaseField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 邮件表
 * </p>
 *
 * @author chenkq
 * @since 2024-12-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("client_sent_emails")
@ApiModel(value="ClientSentEmailsEntity对象", description="邮件表")
public class ClientSentEmailsEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "绑定的邮件")
    @TableField("smtp_pop_id")
    private Long smtpPopId;

    @ApiModelProperty(value = "msg_uid")
    @TableField("msg_uid")
    private String msgUid;

    @ApiModelProperty(value = "消息唯一标识符")
    @TableField("message_id")
    private String messageId;

    @ApiModelProperty(value = "主题")
    @TableField("subject")
    private String subject;

    @ApiModelProperty(value = "发件人邮箱")
    @TableField("`from`")
    private String from;

    @ApiModelProperty(value = "发件人邮箱")
    @TableField("from_name")
    private String fromName;

    @ApiModelProperty(value = "收件人邮箱")
    @TableField("recipient")
    private String recipient;

    @ApiModelProperty(value = "收件人邮箱")
    @TableField("recipient_name")
    private String recipientName;

    @ApiModelProperty(value = "抄送人邮箱")
    @TableField("recipient_cc")
    private String recipientCc;

    @ApiModelProperty(value = "抄送人邮箱")
    @TableField("recipient_cc_name")
    private String recipientCcName;

    @ApiModelProperty(value = "密送人邮箱")
    @TableField("recipient_bcc")
    private String recipientBcc;

    @ApiModelProperty(value = "密送人")
    @TableField("recipient_bcc_name")
    private String recipientBccName;

    @ApiModelProperty(value = "folder")
    @TableField("folder")
    private String folder;

    @ApiModelProperty(value = "自定义文件夹id")
    @TableField("custom_folder_id")
    private Long customFolderId;

    @ApiModelProperty(value = "邮件内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "收件时间")
    @TableField("sent_date")
    private LocalDateTime sentDate;

    @ApiModelProperty(value = "发件时间")
    @TableField("recipient_date")
    private LocalDateTime recipientDate;

    @ApiModelProperty(value = "邮件大小")
    @TableField("email_size")
    private Integer emailSize;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "进出标记（1进2出）")
    @TableField("in_out_mark")
    private Integer inOutMark;

    @ApiModelProperty(value = "是否删除：0未读，1已读")
    @TableField("is_read")
    private Integer isRead;

    @ApiModelProperty(value = "是否需要回执，默认0：不需要，1 需要")
    @TableField("is_receipt")
    private Integer isReceipt;

    @ApiModelProperty(value = "是否需要跟踪，默认0：不需要，1 需要")
    @TableField("is_track")
    private Integer isTrack;

    @ApiModelProperty(value = "是否需要跟踪，默认0：不需要，1 需要")
    @TableField("read_remind")
    private Integer readRemind;

    @ApiModelProperty(value = "定时发送时间")
    @TableField("delay_send_time")
    private LocalDateTime delaySendTime;

    @ApiModelProperty(value = "收件人阅读状态，默认0：未看，1 已看")
    @TableField("recipient_read")
    private Integer recipientRead;

    @ApiModelProperty(value = "是不是只获取了邮件的头信息:1 是，0：否")
    @TableField("is_only_head")
    private Integer isOnlyHead;

    @ApiModelProperty(value = "是否回复")
    @TableField("reply_msg_id")
    private Integer replyMsgId;

    @ApiModelProperty(value = "状态：0 ：失败，1：成功")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "状态：0 ：no，1：starr")
    @TableField("is_star")
    private Long isStar;

    @ApiModelProperty(value = "状态：0 ：不是，1：是")
    @TableField("is_trash")
    private Long isTrash;

    @TableField("customer_ids")
    private String customerIds;

    @TableField("liaison_ids")
    private String liaisonIds;

    @ApiModelProperty(value = "跟进主键id(0表示已跟进，null表示未跟进)")
    @TableField("follow_up_id")
    private Long followUpId;

    @ApiModelProperty(value = "跟进时间")
    @TableField("follow_up_time")
    private LocalDateTime followUpTime;


}
