package com.mini.capi.biz.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * SSH 服务器信息表
 * </p>
 *
 * @author gaoxq
 * @since 2025-08-23
 */
@Getter
@Setter
@TableName("biz_ssh_info")
public class SshInfo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableId(value = "host_id", type = IdType.AUTO)
    private String hostId;

    /**
     * IP 或域名
     */
    @TableField("host_ip")
    private String hostIp;

    /**
     * SSH 端口
     */
    @TableField("host_port")
    private String hostPort;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 租户id
     */
    @TableField("f_tenant_id")
    private String fTenantId;

    /**
     * 流程id
     */
    @TableField("f_flow_id")
    private String fFlowId;

    /**
     * 流程任务主键
     */
    @TableField("f_flow_task_id")
    private String fFlowTaskId;

    /**
     * 流程任务状态
     */
    @TableField("f_flow_state")
    private Integer fFlowState;
}
