package cn.reghao.autodop.dmaster.app.model.po.config.build;

import cn.reghao.autodop.dmaster.util.db.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

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

/**
 * 应用构建需要使用的本地目录
 *
 * @author reghao
 * @date 2019-08-27 00:17:55
 */
@Getter
@Setter
@Entity
public class BuildDir extends BaseEntity<Integer> {
    @Column(nullable = false, unique = true)
    @NotBlank(message = "机器 ID 不能为空白字符串")
    private String machineId;
    private String machineIpv4;
    // 本地目录，包含 local-repo, compile-dir 和 pack-dir 三个子目录
    @Column(nullable = false)
    @NotBlank(message = "新目录路径不能为空白字符串")
    private String dirPath;
    private String mountedOn;
    private String total;
    private String used;
    private String avail;
}
