package com.pack.modeler.model;

import lombok.Data;

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

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

    String token;
    String file;

    public static BPMNData of(String tokenKey, String filePath) {
        BPMNData bd = new BPMNData();
        bd.token = tokenKey;
        bd.file = filePath;

        return bd;
    }

}