package com.cool.store.entity.visit;

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

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 预约到店
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "zxjp_store_visit_reservation")
public class StoreVisitReservationDO {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name = "intent_city_id")
    private Long intentCityId;

    @Column(name = "contact_name")
    private String contactName;

    private String mobile;

    @Column(name = "visit_time")
    private Date visitTime;

    /**
     * 10-待确认 20-待看店 30-已到店 40-已取消
     */
    private Integer status;

    private String remark;

    @Column(name = "cancel_reason")
    private String cancelReason;

    @Column(name = "current_follow_user")
    private String currentFollowUser;

    @Column(name = "service_user_id")
    private String serviceUserId;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;

    private Integer deleted;
}
