package com.pack.modeler.model;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

@Entity
@Data
public class SessionData {
    @Id
    @GeneratedValue
    Long id;

    String token;
    String file;
    String csvDelim;

    public static SessionData of(String tokenKey, String filePath) {
        SessionData sd = new SessionData();
        sd.token = tokenKey;
        sd.file = filePath;
        sd.csvDelim = "";

        return sd;
    }

}
