package com.hdkj.lt.bf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 分层分级用户数量日表（IEC用户电压指数分母）
 * <p>
 * dim_level = county/substation/feeder 三档，每档一行
 * 数据源：fhzg_se_consumer_relation，每天凌晨1点刷昨天
 *
 * @author lsl
 * @since 2026-07-30
 */
@TableName("fhzg_se_consumer_count_daily")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FhzgSeConsumerCountDaily implements Serializable {

    private static final long serialVersionUID = 1L;

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

    /** 统计日期 */
    private LocalDate statDate;

    /** 维度级别：county/substation/feeder */
    private String dimLevel;

    /** 区县ID */
    private String countyId;

    /** 变电站ID */
    private String subsId;

    /** 馈线ID */
    private String feederId;

    /** 该维度下用户数 */
    private Integer consumerCount;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;
}
