package com.example.cezenPBX.entity;

import jakarta.persistence.*;
import jdk.jfr.Name;

@Entity
@Table(name = "extensions_table")
public class ExtensionsTable implements PBXentiry{

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private int id;

    @Column(name = "context")
    private String context;

    @Column(name = "exten")
    private String extension;

    @Column(name = "priority")
    private int priority;

    @Column(name = "app")
    private String app;

    @Column(name = "appdata")
    private String appdata;

    public ExtensionsTable(){}

    public ExtensionsTable(String context, String extension, int priority, String app, String appdata) {
        this.context = context;
        this.extension = extension;
        this.priority = priority;
        this.app = app;
        this.appdata = appdata;
    }

    public int getId() {
        return id;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getExtension() {
        return extension;
    }

    public void setExtension(String extension) {
        this.extension = extension;
    }

    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    public String getApp() {
        return app;
    }

    public void setApp(String app) {
        this.app = app;
    }

    public String getAppdata() {
        return appdata;
    }

    public void setAppdata(String appdata) {
        this.appdata = appdata;
    }
}
