package de.votian.services.entity;

import jakarta.persistence.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Entity
@Table(name = "servicehistory")
public class ServiceHistory {

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

    @Column(name = "srv_id")
    private Long serviceId;

    @Column(name = "srvt_id")
    private Long serviceTypeId;

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

    @Column(name = "hq_id")
    private Long headquartersId;

    @Column(name = "srvh_validfrom")
    private LocalDateTime validFrom;

    @Column(name = "srvh_price")
    private BigDecimal price;

    @Column(name = "srvh_cr_price")
    private BigDecimal courierPrice;

    @Column(name = "srvh_discount")
    private BigDecimal discount;

    @Column(name = "srvh_cr_discount")
    private BigDecimal courierDiscount;

    public ServiceHistory() {}

    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    public Long getServiceId() { return serviceId; }
    public void setServiceId(Long serviceId) { this.serviceId = serviceId; }
    public Long getServiceTypeId() { return serviceTypeId; }
    public void setServiceTypeId(Long serviceTypeId) { this.serviceTypeId = serviceTypeId; }
    public Long getCustomerId() { return customerId; }
    public void setCustomerId(Long customerId) { this.customerId = customerId; }
    public Long getHeadquartersId() { return headquartersId; }
    public void setHeadquartersId(Long headquartersId) { this.headquartersId = headquartersId; }
    public LocalDateTime getValidFrom() { return validFrom; }
    public void setValidFrom(LocalDateTime validFrom) { this.validFrom = validFrom; }
    public BigDecimal getPrice() { return price; }
    public void setPrice(BigDecimal price) { this.price = price; }
    public BigDecimal getCourierPrice() { return courierPrice; }
    public void setCourierPrice(BigDecimal courierPrice) { this.courierPrice = courierPrice; }
    public BigDecimal getDiscount() { return discount; }
    public void setDiscount(BigDecimal discount) { this.discount = discount; }
    public BigDecimal getCourierDiscount() { return courierDiscount; }
    public void setCourierDiscount(BigDecimal courierDiscount) { this.courierDiscount = courierDiscount; }
}
