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

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 com.baomidou.mybatisplus.annotation.TableField;
import com.storlead.sales.enums.ChangeTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 客户/线索跟进人转移记录表
 * </p>
 *
 * @author YPZ
 * @since 2024-05-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("customer_owner_change")
@ApiModel(value="CustomerOwnerChangeEntity对象", description="客户/线索跟进人转移记录表")
public class CustomerOwnerChangeEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "客户/线索转移主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

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

    @ApiModelProperty(value = "转移类型：1商机、2订单、3费用、4发票")
    @TableField("change_type")
    private ChangeTypeEnum changeType;

    @ApiModelProperty(value = "原拥有者")
    @TableField("old_owner_by")
    private Long oldOwnerBy;

    @ApiModelProperty(value = "现拥有者")
    @TableField("now_owner_by")
    private Long nowOwnerBy;


}
