package com.storlead.sales.pojo.entity.mail;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.storlead.framework.mybatis.entity.SysBaseField;
import com.baomidou.mybatisplus.annotation.TableId;
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;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * <p>
 * 客户联系人关联邮件绑定标记
 * </p>
 *
 * @author chenkq
 * @since 2024-08-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("customer_mail_bing_mark")
@ApiModel(value="CustomerMailBingMarkEntity对象", description="客户联系人关联邮件绑定标记")
public class CustomerMailBingMarkEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "客户id")
    @TableField("customer_id")
    private Long customerId;

    @ApiModelProperty(value = "联系人id")
    @TableField("liaison_ids")
    private String liaisonIds;

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

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

    @ApiModelProperty(value = "绑定的邮件")
    @TableField("in_out_mark")
    private Integer inOutMark;

    @ApiModelProperty(value = "跟进时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime followUpTime;

}
