package cn.com.countrygarden.bi.main.model.ck;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

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

@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "ck_cleaner_recording")
@Data
public class CkCleanerRecording implements Serializable {
    @Id
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    private Integer id;

    /**
     *
     */
    @Column(name="basic_id")
    private Integer basicId;

    /**
     * 区域编码
     */
    @Column(name="org_code")
    private String orgCode;
    /**
     * 区域名称
     */
    @Column(name="org_name")
    private String orgName;
    /**
     * 项目编码
     */
    @Column(name="comm_code")
    private String commCode;
    /**
     * 项目名称
     */
    @Column(name="comm_name")
    private String commName;
    /**
     * 月份
     */
    @Column(name="month")
    private String month;
    /**
     * 年份
     */
    @Column(name="year")
    private String year;
    /**
     * 状态(0:禁用，1：启用，2：删除)
     */
    @Column(name="status")
    private Integer status;

    /**
     * 数据分类
     */
    @Column(name="operating_type")
    private String operatingType;

    /**
     * 操作类型
     */
    @Column(name="data_classification")
    private String dataClassification;

    /**
     * 操作人
     */
    @Column(name="operating_by")
    private String operatingBy;

    /**
     * 操作人姓名
     */
    @Column(name="operating_name")
    private String operatingName;

    /**
     * 操作时间
     */
    @Column(name="operating_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date operatingTime;

    /**T
     * 创建时间
     */
    @Column(name="create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
}
