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_platform")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CloseUpPlatformDO {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 申请单id
     */
    @Column(name = "apply_id")
    private Long applyId;

    /**
     * 申请单类型，0歇业申请 1开业申请
     */
    @Column(name = "apply_type")
    private Integer applyType;

    /**
     * code
     */
    private String code;

    /**
     * 名称
     */
    private String name;

    /**
     * 状态：0-待处理, 1-已处理
     */
    private Integer status;

    /**
     * 关闭类型，0手动关闭，1自动关闭
     */
    private Integer type;

    /**
     * 任务开始日期
     */
    @Column(name = "task_start_date")
    private Date taskStartDate;

    /**
     * 图标
     */
    private String icon;

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

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