package com.thesis.centralserver.entities;

import lombok.Data;

import javax.persistence.*;

@Entity
@Data
public class OffloadingTask {

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

    @ManyToOne
    private Device buyer;

    @ManyToOne
    private Device seller;

    private double cost;

    @Enumerated(EnumType.STRING)
    private OffloadingTaskStatus status;

}
