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.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 设备功能数据/属性点位（leo.ems_device_function）
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ems_device_function")
public class EmsDeviceFunction implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @TableField("product_id")
    private Long productId;
    @TableField("product_template_id")
    private Long productTemplateId;
    @TableField("device_id")
    private String deviceId;
    private String identifier;
    private String name;
    private String value;
    @TableField("acq_time")
    private LocalDateTime acqTime;
    private BigDecimal ratio;
    private Integer preservable;
    @TableField("binding_acq")
    private Integer bindingAcq;
    @TableField("updated_by")
    private Long updatedBy;
    @TableField("update_time")
    private LocalDateTime updateTime;
    @TableField("created_by")
    private Long createdBy;
    @TableField("create_time")
    private LocalDateTime createTime;
}
