package com.erp.waybill.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 物流轨迹明细实体
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("logistics_traces")
public class LogisticsTrace {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 运单号
     */
    private String waybillNo;

    /**
     * 快递公司编码
     */
    private String carrier;

    /**
     * 状态
     */
    private String status;

    /**
     * 地点
     */
    private String location;

    /**
     * 轨迹描述
     */
    private String description;

    /**
     * 轨迹时间
     */
    private LocalDateTime traceTime;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
}
