package com.cool.store.entity.visit;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import javax.persistence.*;

/**
 * 拜访记录
 */
@Data
@Table(name = "zxjp_visit_record")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class VisitRecordDO {
    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 拜访编号
     */
    @Column(name = "visit_no")
    private String visitNo;

    /**
     * 线索id
     */
    @Column(name = "line_id")
    private Long lineId;

    /**
     * 拜访状态，0待签到 1待签退 2已完成 3已失效
     */
    private Integer status;

    /**
     * 是否已完成拜访信息编辑 0否 1是
     */
    @Column(name = "complete_edit")
    private Integer completeEdit;

    /**
     * 签到时间
     */
    @Column(name = "sign_in_time")
    private Date signInTime;

    /**
     * 签到经纬度
     */
    @Column(name = "sign_in_lon_lat")
    private String signInLonLat;

    /**
     * 签到地址
     */
    @Column(name = "sign_in_address")
    private String signInAddress;

    /**
     * 签退时间
     */
    @Column(name = "sign_out_time")
    private Date signOutTime;

    /**
     * 签退经纬度
     */
    @Column(name = "sign_out_lon_lat")
    private String signOutLonLat;

    /**
     * 签退地址
     */
    @Column(name = "sign_out_address")
    private String signOutAddress;

    /**
     * 拜访日期
     */
    @Column(name = "visit_date")
    private Date visitDate;

    /**
     * 开新店意愿
     */
    private String desire;

    /**
     * 意向开店城市
     */
    @Column(name = "desire_city")
    private String desireCity;

    /**
     * 具体区域
     */
    @Column(name = "desire_district")
    private String desireDistrict;

    /**
     * 是否对应现有铺位
     */
    @Column(name = "existing_shop_point")
    private Integer existingShopPoint;

    /**
     * 拜访备注
     */
    private String remark;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;

    /**
     * 加盟商合影图片列表
     */
    private String photos;

    /**
     * 拜访用户id
     */
    @Column(name = "user_id")
    private String userId;
}