package com.usky.ems.domain;

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 lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 设备与能耗分项关联（ems_device_item_code）
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ems_device_item_code")
public class EmsDeviceItemCode implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @TableField("device_uuid")
    private String deviceUuid;

    @TableField("item_code")
    private String itemCode;

    @TableField("energy_type")
    private Integer energyType;

    @TableField("created_by")
    private String createdBy;

    @TableField("created_time")
    private LocalDateTime createdTime;

    @TableField("updated_by")
    private String updatedBy;

    @TableField("updated_time")
    private LocalDateTime updatedTime;

    /** 租户号 */
    private Integer tenantId;
}
