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 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-11-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("customer_owner_record")
@ApiModel(value="CustomerOwnerRecordEntity对象", description="客户归属人变更记录表")
public class CustomerOwnerRecordEntity 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 = "原拥有者")
    @TableField("old_owner_by")
    private Long oldOwnerBy;

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

    @ApiModelProperty(value = "操作方式value(对应字典操作方式value1领取、2分配、3创建、4置公、5离职继承)")
    @TableField("operating_type")
    private Integer operatingType;

    @ApiModelProperty(value = "原客户详情（JSON）")
    @TableField("customer_detail")
    private String customerDetail;


}
