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_dr_participation
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("vpp_dr_participation")
public class VppDrParticipation implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("event_id")
    private Long eventId;
    @TableField("customer_id")
    private Long customerId;
    @TableField("resource_id")
    private Long resourceId;
    @TableField("participate_status")
    private Integer participateStatus;
    /** 申报出清容量 */
    @TableField("declared_capacity_kw")
    private BigDecimal declaredCapacityKw;
    @TableField("cleared_capacity_kw")
    private BigDecimal clearedCapacityKw;
    /** 完成率 = 出清容量 / 申报容量 */
    @TableField("completion_rate")
    private BigDecimal completionRate;
    @TableField("declared_at")
    private LocalDateTime declaredAt;
    @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;
}
