package de.votian.services.entity;

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

@Entity
@Table(name = "courier")
public class Courier {

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

    @Column(name = "cr_eid")
    private String eid;

    @Column(name = "cr_sid")
    private String sid;

    @Column(name = "cmp_id")
    private Long companyId;

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

    @Column(name = "usr_id")
    private Long userId;

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

    @Column(name = "cr_available")
    private String available;

    @Column(name = "cr_availabletime")
    private LocalDateTime availableTime;

    @Column(name = "cr_locationzipcode")
    private String locationZipcode;

    @Column(name = "cr_gps_long")
    private Double gpsLongitude;

    @Column(name = "cr_gps_lat")
    private Double gpsLatitude;

    @Column(name = "cr_gps_time")
    private LocalDateTime gpsTime;

    @Column(name = "cr_gps_type")
    private Integer gpsType;

    @Column(name = "cr_mobile_pda")
    private String mobilePda;

    @Column(name = "cr_group")
    private String group;

    @Column(name = "cr_filter")
    private String filter;

    public Courier() {}

    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    public String getEid() { return eid; }
    public void setEid(String eid) { this.eid = eid; }
    public String getSid() { return sid; }
    public void setSid(String sid) { this.sid = sid; }
    public Long getCompanyId() { return companyId; }
    public void setCompanyId(Long companyId) { this.companyId = companyId; }
    public Long getHeadquartersId() { return headquartersId; }
    public void setHeadquartersId(Long headquartersId) { this.headquartersId = headquartersId; }
    public Long getUserId() { return userId; }
    public void setUserId(Long userId) { this.userId = userId; }
    public Integer getVehicleTypeId() { return vehicleTypeId; }
    public void setVehicleTypeId(Integer vehicleTypeId) { this.vehicleTypeId = vehicleTypeId; }
    public String getAvailable() { return available; }
    public void setAvailable(String available) { this.available = available; }
    public LocalDateTime getAvailableTime() { return availableTime; }
    public void setAvailableTime(LocalDateTime availableTime) { this.availableTime = availableTime; }
    public String getLocationZipcode() { return locationZipcode; }
    public void setLocationZipcode(String locationZipcode) { this.locationZipcode = locationZipcode; }
    public Double getGpsLongitude() { return gpsLongitude; }
    public void setGpsLongitude(Double gpsLongitude) { this.gpsLongitude = gpsLongitude; }
    public Double getGpsLatitude() { return gpsLatitude; }
    public void setGpsLatitude(Double gpsLatitude) { this.gpsLatitude = gpsLatitude; }
    public LocalDateTime getGpsTime() { return gpsTime; }
    public void setGpsTime(LocalDateTime gpsTime) { this.gpsTime = gpsTime; }
    public Integer getGpsType() { return gpsType; }
    public void setGpsType(Integer gpsType) { this.gpsType = gpsType; }
    public String getMobilePda() { return mobilePda; }
    public void setMobilePda(String mobilePda) { this.mobilePda = mobilePda; }
    public String getGroup() { return group; }
    public void setGroup(String group) { this.group = group; }
    public String getFilter() { return filter; }
    public void setFilter(String filter) { this.filter = filter; }
}
