package com.njcn.pojo.data;

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

/**
 * @Author denghuajun
 * @Description //TODO 日志备份还原
 * @Date 2018/9/26 10:08
 **/
@Table(name = "PQS_LOGBACKUP")
public class LogBackUp {
    @Id
    @Column(name = "LOGBACKUP_INDEX")
    private String logBackUpIndex;//	日志备份表Guid
    @Column(name = "BACKUPNAME")
    private String backUpName;    //Varchar2(100)	Not NULL	备份名称
    @Column(name = "USER_INDEX")
    private String userIndex;    //Varchar2 (36)	Not NULL	(关联表PQS_User）用户表Guid
    @Column(name = "TYPE")
    private String type;    //Varchar2 (36)	Not NULL	（关联PQS_Dicdata）备份模式Guid（增量备份、完整备份）
    @Column(name = "DESCRIBE")
    private String describe;    //Varchar2 (500)	Not NULL	备份描述
    @Column(name = "UPDATETIME")
    private Date updateTime;    //Datetime	Not NULL	更新时间
    @Column(name = "STATE")
    private int state;    //Number(1)	Not NULL	数据状态（0：删除；1：正常）

    public String getLogBackUpIndex() {
        return logBackUpIndex;
    }

    public void setLogBackUpIndex(String logBackUpIndex) {
        this.logBackUpIndex = logBackUpIndex;
    }

    public String getBackUpName() {
        return backUpName;
    }

    public void setBackUpName(String backUpName) {
        this.backUpName = backUpName;
    }

    public String getUserIndex() {
        return userIndex;
    }

    public void setUserIndex(String userIndex) {
        this.userIndex = userIndex;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getSysType() {
        return sysType;
    }

    public void setSysType(String sysType) {
        this.sysType = sysType;
    }

    @Column(name = "SYSTYPE")
    private String sysType;    //Varchar2 (36)	Not NULL	系统类型Guid

    @Override
    public String toString() {
        return "LogBackUp{" +
                "logBackUpIndex='" + logBackUpIndex + '\'' +
                ", backUpName='" + backUpName + '\'' +
                ", userIndex='" + userIndex + '\'' +
                ", type='" + type + '\'' +
                ", describe='" + describe + '\'' +
                ", updateTime=" + updateTime +
                ", state=" + state +
                ", sysType='" + sysType + '\'' +
                '}';
    }
}
