package com.gxwebsoft.common.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 环境管理
 *
 * @author 科技小王子
 * @since 2023-10-18 08:45:13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "Environment对象", description = "环境管理")
@TableName("sys_environment")
public class Environment implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "插件id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "环境名称")
    private String environmentName;

    @Schema(description = "环境编号")
    private String environmentCode;

    @Schema(description = "服务器厂商")
    private String brand;

    @Schema(description = "服务器IP")
    private String serverIp;

    @Schema(description = "模块访问地址")
    private String modulesUrl;

    @Schema(description = "模块API")
    private String modulesApi;

    @Schema(description = "排序号")
    private Integer sortNumber;

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "状态, 10待审核 20已通过 30已驳回")
    private Integer status;

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
