package com.thesis.centralserver.entities;

import lombok.Data;

import javax.persistence.*;

@Entity
@Data
public class Device {

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

    @Column
    private String ip;

    @Column
    private int totalMemory;

    @Column
    private double remainingMemory;

    @Column
    private double remainingBattery;

    @Column
    private double processorSpeed;

    @Column
    private double processorFree;

    @Column
    private int currencyUnitsAvailable;

    @Column
    private double networkBandWidthAvailable;

    @Column
    @Enumerated(EnumType.STRING)
    private DeviceMode deviceMode;

    @Column
    private double alpha;

    @Column
    private double beta;

    @Column
    private double gamma;

}
