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_energy_consumption_formula）
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ems_energy_consumption_formula")
public class EmsEnergyConsumptionFormula implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @TableField("space_id")
    private Long spaceId;

    @TableField("item_code")
    private String itemCode;

    private String name;

    private String formula;

    @TableField("compute_start_time")
    private LocalDateTime computeStartTime;

    @TableField("compute_end_time")
    private LocalDateTime computeEndTime;

    @TableField("data_time")
    private LocalDateTime dataTime;

    private Integer status;

    private String cause;

    @TableField("updated_by")
    private Long updatedBy;

    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableField("created_by")
    private Long createdBy;

    @TableField("create_time")
    private LocalDateTime createTime;
}

