package com.gxwebsoft.oa.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 服务器资产记录表
 *
 * @author 科技小王子
 * @since 2024-09-10 20:57:41
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "OaAssetsServer对象", description = "服务器资产记录表")
public class OaAssetsServer implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "资产ID")
    @TableId(value = "server_id", type = IdType.AUTO)
    private Integer serverId;

    @Schema(description = "资产名称")
    private String name;

    @Schema(description = "资产标识")
    private String code;

    @Schema(description = "资产类型")
    private String type;

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

    @Schema(description = "服务器配置")
    private String configuration;

    @Schema(description = "初始账号")
    private String account;

    @Schema(description = "初始密码")
    private String password;

    @Schema(description = "(阿里云/腾讯云)登录账号")
    private String brandAccount;

    @Schema(description = "(阿里云/腾讯云)登录密码")
    private String brandPassword;

    @Schema(description = "宝塔面板")
    private String panel;

    @Schema(description = "宝塔面板账号")
    private String panelAccount;

    @Schema(description = "宝塔面板密码")
    private String panelPassword;

    @Schema(description = "财务信息-合同金额")
    private BigDecimal financeAmount;

    @Schema(description = "购买年限")
    private Integer financeYears;

    @Schema(description = "续费金额")
    private BigDecimal financeRenew;

    @Schema(description = "客户名称")
    private String financeCustomerName;

    @Schema(description = "客户联系人")
    private String financeCustomerContact;

    @Schema(description = "客户联系电话")
    private String financeCustomerPhone;

    @Schema(description = "客户ID")
    private Integer customerId;

    @Schema(description = "客户名称")
    private String customerName;

    @Schema(description = "开放端口")
    private String openPort;

    @Schema(description = "详情内容")
    private String content;

    @Schema(description = "购买时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @Schema(description = "到期时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @Schema(description = "置顶状态")
    private String isTop;

    @Schema(description = "可见性(public,private,protected)")
    private String visibility;

    @Schema(description = "宝塔接口秘钥")
    private String btSign;

    @Schema(description = "文章排序(数字越小越靠前)")
    private Integer sortNumber;

    @Schema(description = "描述")
    private String comments;

    @Schema(description = "客户ID")
    private Integer companyId;

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

    @Schema(description = "机构id")
    private Integer organizationId;

    @Schema(description = "状态, 0正常, 1冻结")
    private String status;

    @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 LocalDateTime createTime;

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

}
