package com.bonus.material.iot.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.bonus.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import com.bonus.common.core.web.domain.BaseEntity;

/**
 * 设备类型绑定对象 iot_machine_bind
 * 
 * @author xsheng
 * @date 2024-10-16
 */


@Data
@ToString
public class IotMachineBind extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** iot设备id */
    @Excel(name = "iot设备id")
    @ApiModelProperty(value = "iot设备id")
    private Long iotId;

    /** 设备类型id */
    @Excel(name = "设备类型id")
    @ApiModelProperty(value = "设备类型id")
    private Long typeId;

    /** 被绑定机具编号 */
    @Excel(name = "被绑定机具编号")
    @ApiModelProperty(value = "被绑定机具编号")
    private String maCode;

    /** 绑定人 */
    @Excel(name = "绑定人")
    @ApiModelProperty(value = "绑定人")
    private String binder;

    /** 绑定时间 */
    @ApiModelProperty(value = "绑定时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "绑定时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date bindTime;

    /** 解绑人 */
    @Excel(name = "解绑人")
    @ApiModelProperty(value = "解绑人")
    private String unbinder;

    /** 解绑时间 */
    @ApiModelProperty(value = "解绑时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "解绑时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date unbindTime;


}
