package cn.reghao.oss.web.app.model.po;

import cn.reghao.oss.web.util.db.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.validation.constraints.NotNull;

/**
 * @author reghao
 * @date 2024-02-23 11:29:14
 */
@Getter
@Setter
@Entity
public class StoreNode extends BaseEntity {
    @Column(nullable = false, unique = true)
    private String ipv4Addr;
    @NotNull
    private Integer httpPort;
    @NotNull
    private Integer rpcPort;
    private Long total;
    private Long avail;
    private String domain;
    private Integer regionId;
}
