package com.cool.store.entity.closeup;

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

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

/**
 * 歇业开业申请单
 */
@Data
@Table(name = "zxjp_close_up_apply_form")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CloseUpApplyFormDO {
    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 类型，0歇业申请 1开业申请
     */
    private Integer type;

    /**
     * 门店id
     */
    @Column(name = "store_id")
    private String storeId;

    /**
     * 申请单号
     */
    @Column(name = "apply_no")
    private String applyNo;

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

    /**
     * 状态，1-审批中 5-审批拒绝 10-审批通过
     */
    private Integer status;

    /**
     * 计划歇业日期
     */
    @Column(name = "plan_close_date")
    private Date planCloseDate;

    /**
     * 实际歇业日期
     */
    @Column(name = "actual_close_date")
    private Date actualCloseDate;

    /**
     * 计划开业日期
     */
    @Column(name = "plan_open_date")
    private Date planOpenDate;

    /**
     * 实际开业日期
     */
    @Column(name = "actual_open_date")
    private Date actualOpenDate;

    /**
     * 代申请运营顾问id
     */
    @Column(name = "user_id")
    private String userId;

    /**
     * 附件列表
     */
    private String urls;

    /**
     * 原因说明
     */
    private String reason;

    /**
     * 源申请单id
     */
    @Column(name = "source_apply_id")
    private Long sourceApplyId;

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

    /**
     * 更新时间
     */
    @Column(name = "updated_time")
    private Date updatedTime;
}