package com.cool.store.entity;

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

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

@Table(name = "zxjp_close_store_info")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CloseStoreInfoDO {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 闭店申请单号
     */
    @Column(name = "close_store_no")
    private String closeStoreNo;

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

    /**
     * 区域ID
     */
    @Column(name = "region_id")
    private Long regionId;

    /**
     * 计划闭店日期
     */
    @Column(name = "plan_close_data")
    private Date planCloseData;

    /**
     * 实际闭店日期
     */
    @Column(name = "actual_close_data")
    private Date actualCloseData;

    /**
     * 闭店发起方式 1-主动发起 2-云流水发起
     */
    @Column(name = "close_type")
    private Integer closeType;

    /**
     * 闭店原因
     */
    @Column(name = "close_reason")
    private Integer closeReason;

    /**
     * 闭店原因说明
     */
    @Column(name = "reason_description")
    private String reasonDescription;

    /**
     * 闭店状态 1-审批中  5-审核未通过  10-进行中 15已完成 20-已取消 
     */
    @Column(name = "close_status")
    private Integer closeStatus;

    /**
     * 督导
     */
    @Column(name = "supervisor_user_id")
    private String supervisorUserId;

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

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

    /**
     * 发起人id
     */
    @Column(name = "apply_user_id")
    private String applyUserId;
}