package com.njcn.gather.systemops.database.pojo.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 数据库恢复记录。
 */
@Data
@TableName("dbms_restore_record")
public class DatabaseRestoreRecord implements Serializable {
    private static final long serialVersionUID = -5638979151924581277L;

    @TableId("id")
    private String id;
    @TableField("task_id")
    private String taskId;
    @TableField("backup_file_id")
    private String backupFileId;
    @TableField("connection_id")
    private String connectionId;
    @TableField("db_type")
    private String dbType;
    @TableField("restore_mode")
    private String restoreMode;
    @TableField("target_schema_name")
    private String targetSchemaName;
    @TableField("target_names_json")
    private String targetNamesJson;
    @TableField("table_exists_action")
    private String tableExistsAction;
    @TableField("overwrite_confirmed")
    private Integer overwriteConfirmed;
    @TableField("result_message")
    private String resultMessage;
    @TableField("state")
    private Integer state;
    @TableField("create_by")
    private String createBy;
    @TableField("create_time")
    private LocalDateTime createTime;
    @TableField("update_by")
    private String updateBy;
    @TableField("update_time")
    private LocalDateTime updateTime;
}
