package com.hotwj.platform.resourceManagement.vehicleMileage.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.io.Serial;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 车辆行驶里程对象 hot_vehicle_mileage
 *
 * @author shihongwei
 * @date 2026-01-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hot_vehicle_mileage")
public class HotVehicleMileage extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 公司ID
     */
    private Long companyId;

    /**
     * 车辆ID
     */
    private Long vehicleId;

    /**
     * 车牌号
     */
    private String plateNumber;

    /**
     * 行驶开始日期
     */
    private Date startDate;

    /**
     * 行驶结束日期
     */
    private Date endDate;

    /**
     * 行驶里程(公里)
     */
    private BigDecimal mileageKm;

    /**
     * 备注
     */
    private String remark;

    /**
     * 0=正常, 1=已删除
     */
    @TableLogic
    private Long isDeleted;


}
