package com.huiju.estateagents.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *  
 * </p>
 *
 * @author jobob
 * @since 2019-07-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TaPersonVisitRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 访问记录id
     */
    @TableId(value = "record_id", type = IdType.AUTO)
    private Integer recordId;

    /**
     * 到访人id
     */
    private String personId;

    /**
     * 到访人类型
     */
    private String personType;

    /**
     * 到访时间
     */
    private LocalDateTime visitTime;

    /**
     * 离开时间
     */
    private LocalDateTime leaveTime;

    /**
     * 到访时长
     */
    private Integer visitDuration;

    /**
     * 事件
     */
    private String event;

    /**
     * 参数
     */
    private String data;

    /**
     * 行为
     */
    private String activity;

    private String eventType;

    private String buildingId;

    private String orgId;

    /**
     * 置业顾问userId
     */
    private String consultantId;

    /**
     * 场景值id
     */
    @TableField(exist = false)
    private String sceneId;

    /**
     * 分享者personid
     */
    private String sharePersonId;

    @TableField(exist = false)
    private String propertyName;
    @TableField(exist = false)
    private String propertyCode;


    private String targetId;

    private String targetType ;

    /**
     * 用户名称
     */
    @TableField(exist = false)
    private String userName;

    /**
     * 用户手机号
     */
    @TableField(exist = false)
    private String userTel;

    /**
     * 事件名称
     */
    @TableField(exist = false)
    private String eventName;

    /**
     * 访问次数
     */
    @TableField(exist = false)
    private Integer accessCount;
    
    /**
     * 楼盘名称
     */
    @TableField(exist = false)
    private String buildingName;
    
    /**
     * 活动名称
     */
    @TableField(exist = false)
    private String activityName;

    /**
     * 资讯名称
     */
    @TableField(exist = false)
    private String newsName;

    /**
     * 助力名称
     */
    @TableField(exist = false)
    private String helpActivityName;

    /**
     * 拼团名称
     */
    @TableField(exist = false)
    private String groupActivityName;

    /**
     * H5名称
     */
    @TableField(exist = false)
    private String drainageName;

    /**
     * 分享者名称
     */
    @TableField(exist = false)
    private String shareName;

    /**
     * 分享者手机
     */
    @TableField(exist = false)
    private String shareTel;

    /** 1是我的客户
     */
    @TableField(exist = false)
    private Integer myCustomer;

    /**
     * 活动创建时间
     */
    @TableField(exist = false)
    private LocalDateTime createDate;

    /**
     * 头像
     */
    @TableField(exist = false)
    private String avatarurl;

    /**
     * 头像
     */
    @TableField(exist = false)
    private String nickname;

    /**
     * 客户id
     */
    @TableField(exist = false)
    private String customerId;

    /**
     * 客户性别
     */
    @TableField(exist = false)
    private Integer sex;

    /**
     * 客户归属地
     */
    @TableField(exist = false)
    private String city;

    private Integer qrCodeId;

    private Integer channelId;

    /**
     * 分享人昵称
     */
    @TableField(exist = false)
    private String sharePersonNickname;

    /**
     * 分享人手机号
     */
    @TableField(exist = false)
    private String sharePersonPhone;

    /**
     * 用户名
     */
    @TableField(exist = false)
    private String name;

    @TableField(exist = false)
    private String phone;
}
