package com.sckw.system.model.vo.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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

/**
 * Weighbridge record response.
 */
@Data
@Schema(description = "Weighbridge record response")
public class WeighbridgeRecordResVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * Primary key.
     */
    @Schema(description = "Primary key")
    private Long id;

    /**
     * Weighbridge id.
     */
    @Schema(description = "Weighbridge id")
    private Long weighbridgeId;

    /**
     * Weighbridge name.
     */
    @Schema(description = "Weighbridge name")
    private String weighbridgeName;

    /**
     * Unique code.
     */
    @Schema(description = "Unique code")
    private String uniqueCode;

    /**
     * Enterprise id.
     */
    @Schema(description = "Enterprise id")
    private Long entId;

    /**
     * Enterprise name.
     */
    @Schema(description = "Enterprise name")
    private String enterpriseName;

    /**
     * Truck number.
     */
    @Schema(description = "Truck number")
    private String truckNo;

    /**
     * Weight.
     */
    @Schema(description = "Weight")
    private BigDecimal weight;

    /**
     * Create time.
     */
    @Schema(description = "Create time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * Receive time.
     */
    @Schema(description = "Receive time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date receiveTime;
}
