package com.usky.vpp.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;

/**
 * vpp_site_config
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("vpp_site_config")
public class VppSiteConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("site_id")
    private Long siteId;
    @TableField("collect_interval_sec")
    private Integer collectIntervalSec;
    @TableField("power_upper_limit")
    private BigDecimal powerUpperLimit;
    @TableField("power_lower_limit")
    private BigDecimal powerLowerLimit;
    @TableField("soc_upper_limit")
    private BigDecimal socUpperLimit;
    @TableField("soc_lower_limit")
    private BigDecimal socLowerLimit;
    @TableField("offline_timeout_sec")
    private Integer offlineTimeoutSec;
    @TableField("alarm_rule_json")
    private String alarmRuleJson;
    @TableField("tenant_id")
    private Integer tenantId;
    @TableField("create_time")
    private LocalDateTime createTime;
    @TableField("update_time")
    private LocalDateTime updateTime;
    @TableField("created_by")
    private String createdBy;
    @TableField("updated_by")
    private String updatedBy;
    @TableField("delete_flag")
    private Integer deleteFlag;
    @TableField("deleted_at")
    private LocalDateTime deletedAt;
}
