package com.eactive.testmaster.client.entity;

import com.eactive.testmaster.user.entity.StaffUser;

import javax.persistence.*;

@Entity
@Table(name = "API_SCENARIO")
public class ApiScenario {

    @Id
    private String id; //uuid

    private String name;

    private String description;

    @ManyToOne
    @JoinColumn(name = "USER_ID")
    private StaffUser owner;

    @Lob
    private String scenario;

    public String getId() {
        return id;
    }

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

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getScenario() {
        return scenario;
    }

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

    public StaffUser getOwner() {
        return owner;
    }

    public void setOwner(StaffUser owner) {
        this.owner = owner;
    }
}
