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 com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * vpp_dr_subsidy_prediction - 需求响应补贴金额预测
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("vpp_dr_subsidy_prediction")
public class VppDrSubsidyPrediction implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @TableField("invitation_id")
    private Long invitationId;

    @TableField("dr_event_id")
    private Long drEventId;

    @TableField("site_id")
    private Long siteId;

    @TableField("site_name")
    private String siteName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("event_start_time")
    private LocalDateTime eventStartTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("event_end_time")
    private LocalDateTime eventEndTime;

    @TableField("response_duration_min")
    private Integer responseDurationMin;

    @TableField("subsidy_price")
    private BigDecimal subsidyPrice;

    @TableField("estimated_capacity_kw")
    private BigDecimal estimatedCapacityKw;

    @TableField("cleared_capacity_kw")
    private BigDecimal clearedCapacityKw;

    @TableField("completion_rate")
    private BigDecimal completionRate;

    @TableField("deviation_rate")
    private BigDecimal deviationRate;

    @TableField("estimated_subsidy_amount")
    private BigDecimal estimatedSubsidyAmount;

    @TableField("tenant_id")
    private Integer tenantId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("update_time")
    private LocalDateTime updateTime;
}
