package net.stuha.messages;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.UUID;

@Entity
public class File {
    @Id
    private UUID id;

    private UUID conversationId;

    private byte[] file;

    private String contentType;

    public UUID getId() {
        return id;
    }

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

    public UUID getConversationId() {
        return conversationId;
    }

    public void setConversationId(UUID conversationId) {
        this.conversationId = conversationId;
    }

    public byte[] getFile() {
        return file;
    }

    public void setFile(byte[] file) {
        this.file = file;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }
}
