package de.votian.services.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Entity
@Table(name = "serviceplzareahistory")
public class ServiceZipCodeAreaHistory {

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

    @Column(name = "srvpa_id")
    private Long fromAreaId;

    @Column(name = "srvpa2_id")
    private Long toAreaId;

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

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

    @Column(name = "vht_id")
    private Integer vehicleTypeId;

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

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

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

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

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

    public Long getId() {
        return id;
    }

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

    public Long getFromAreaId() {
        return fromAreaId;
    }

    public void setFromAreaId(Long fromAreaId) {
        this.fromAreaId = fromAreaId;
    }

    public Long getToAreaId() {
        return toAreaId;
    }

    public void setToAreaId(Long toAreaId) {
        this.toAreaId = toAreaId;
    }

    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 Integer getVehicleTypeId() {
        return vehicleTypeId;
    }

    public void setVehicleTypeId(Integer vehicleTypeId) {
        this.vehicleTypeId = vehicleTypeId;
    }

    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;
    }
}
