package de.votian.services.entity;

import jakarta.persistence.*;

@Entity
@Table(name = "costcenter")
public class CostCenter {

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

    @Column(name = "cs_id")
    private Long customerId;

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

    @Column(name = "csc_pre_id")
    private Long parentId;

    @Column(name = "csc_path")
    private String path;

    @Column(name = "csc_id_payer")
    private Long payerId;

    @Column(name = "csc_visible")
    private String visible;

    @Column(name = "csc_is_extern")
    private String isExtern;

    @Column(name = "emp_id_related")
    private Long relatedEmployeeId;

    public CostCenter() {}

    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    public Long getCustomerId() { return customerId; }
    public void setCustomerId(Long customerId) { this.customerId = customerId; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public Long getParentId() { return parentId; }
    public void setParentId(Long parentId) { this.parentId = parentId; }
    public String getPath() { return path; }
    public void setPath(String path) { this.path = path; }
    public Long getPayerId() { return payerId; }
    public void setPayerId(Long payerId) { this.payerId = payerId; }
    public String getVisible() { return visible; }
    public void setVisible(String visible) { this.visible = visible; }
    public String getIsExtern() { return isExtern; }
    public void setIsExtern(String isExtern) { this.isExtern = isExtern; }
    public Long getRelatedEmployeeId() { return relatedEmployeeId; }
    public void setRelatedEmployeeId(Long relatedEmployeeId) { this.relatedEmployeeId = relatedEmployeeId; }
}
