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 = "serviceplzhistory")
public class ServiceZipCodeHistory {

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

    @Column(name = "srvp_id")
    private Long fromZipCodeId;

    @Column(name = "srvp2_id")
    private Long toZipCodeId;

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

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

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

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

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

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

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

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

    public Long getId() {
        return id;
    }

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

    public Long getFromZipCodeId() {
        return fromZipCodeId;
    }

    public void setFromZipCodeId(Long fromZipCodeId) {
        this.fromZipCodeId = fromZipCodeId;
    }

    public Long getToZipCodeId() {
        return toZipCodeId;
    }

    public void setToZipCodeId(Long toZipCodeId) {
        this.toZipCodeId = toZipCodeId;
    }

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