package com.aiotagro.cattletrade.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 运单设备表
 * </p>
 *
 * @author admin
 * @since 2024-12-26
 */
@Getter
@Setter
@TableName("delivery_device")
public class DeliveryDevice implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 运单ID
     */
    @TableField("delivery_id")
    private Integer deliveryId;

    /**
     * 设备编号
     */
    @TableField("device_id")
    private String deviceId;

    /**
     * 设备类型: 1 主机 2 耳标 3 项圈
     */
    @TableField("device_type")
    private Integer deviceType;

    /**
     * 设备用户
     */
    @TableField("device_user")
    private String deviceUser;

    /**
     * 是否佩戴
     */
    @TableField("is_ware")
    private Integer isWare;

    /**
     * 正面图片
     */
    @TableField("front_img")
    private String frontImg;

    /**
     * 侧面图片
     */
    @TableField("side_img")
    private String sideImg;

    /**
     * 臀部图片
     */
    @TableField("hip_img")
    private String hipImg;

    /**
     * 绑定时间
     */
    @TableField("bind_time")
    private Date bindTime;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 绑定重量
     */
    @TableField("bind_weight")
    private BigDecimal bindWeight;

    /**
     * 删除标志
     */
    @TableField("deleted")
    private Integer deleted;

    /**
     * 租户ID
     */
    @TableField("tenant_id")
    private Integer tenantId;

}
