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_connection")
public class DatabaseConnection implements Serializable {
    private static final long serialVersionUID = -5821519248914313778L;

    @TableId("id")
    private String id;
    @TableField("connection_name")
    private String connectionName;
    @TableField("db_type")
    private String dbType;
    @TableField("host")
    private String host;
    @TableField("port")
    private Integer port;
    @TableField("connect_type")
    private String connectType;
    @TableField("service_name")
    private String serviceName;
    @TableField("sid")
    private String sid;
    @TableField("database_name")
    private String databaseName;
    @TableField("schema_name")
    private String schemaName;
    @TableField("username")
    private String username;
    @TableField("password_cipher")
    private String passwordCipher;
    @TableField("save_password")
    private Integer savePassword;
    @TableField("directory_name")
    private String directoryName;
    @TableField("directory_path")
    private String directoryPath;
    @TableField("extra_config_json")
    private String extraConfigJson;
    @TableField("remark")
    private String remark;
    @TableField("last_test_status")
    private String lastTestStatus;
    @TableField("last_test_message")
    private String lastTestMessage;
    @TableField("last_test_time")
    private LocalDateTime lastTestTime;
    @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;
}
