package ovh.herisson.Clyde.Tables;

import jakarta.persistence.*;


@Entity
public class StorageFile {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    private String name;

    private String url;

    private FileType fileType;

    public StorageFile(String name, String url, FileType fileType){
        this.name = name;
        this.url = url;
        this.fileType = fileType;
    }

    public StorageFile(){}


    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public FileType getFileType() {
        return fileType;
    }

    public void setFileType(FileType fileType) {
        this.fileType = fileType;
    }

}
