package com.eshore.gringotts.web.domain.resource.entity.type;

import com.eshore.gringotts.core.Constants;
import com.eshore.gringotts.web.domain.base.entity.IdOnlyEntity;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 资源类型
 *
 * @author lanyuanxiaoyao
 * @date 2024-11-20
 */
@Getter
@Setter
@ToString
@Entity
@Table(name = Constants.TABLE_PREFIX + "resource_type")
@Inheritance(strategy = InheritanceType.JOINED)
public abstract class ResourceType extends IdOnlyEntity {
    public abstract Type getResourceType();

    public enum Type {
        API,
        DATABASE,
        FILE,
        FTP,
        HDFS,
    }
}
