package com.eactive.testmaster.loadtest.entity;

import com.eactive.testmaster.client.entity.ApiScenario;
import java.time.LocalDateTime;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "LOAD_TEST_RESULT")
public class LoadTestResult {

    @Id
    private int id;

    @ManyToOne
    @JoinColumn(name = "USER_ID")
    private ApiScenario scenario;

    private LocalDateTime startDate;
    private LocalDateTime endDate;
    private String status; //Running, Completed, Stopped
    private String result; // api result in csv format.

    public int getId() {
        return id;
    }

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

    public ApiScenario getScenario() {
        return scenario;
    }

    public void setScenario(ApiScenario scenario) {
        this.scenario = scenario;
    }

    public LocalDateTime getStartDate() {
        return startDate;
    }

    public void setStartDate(LocalDateTime startDate) {
        this.startDate = startDate;
    }

    public LocalDateTime getEndDate() {
        return endDate;
    }

    public void setEndDate(LocalDateTime endDate) {
        this.endDate = endDate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }
}
