package gc.mda.kcg.domain.stats;

import jakarta.persistence.*;
import lombok.*;

import java.math.BigDecimal;
import java.time.OffsetDateTime;

@Entity
@Table(name = "prediction_kpi_realtime", schema = "kcg")
@Getter @Setter @NoArgsConstructor @AllArgsConstructor @Builder
public class PredictionKpi {

    @Id
    @Column(name = "kpi_key", length = 50)
    private String kpiKey;

    @Column(name = "kpi_label", length = 100)
    private String kpiLabel;

    @Column(name = "value")
    private Integer value;

    @Column(name = "trend", length = 10)
    private String trend;

    @Column(name = "delta_pct", precision = 12, scale = 2)
    private BigDecimal deltaPct;

    @Column(name = "updated_at")
    private OffsetDateTime updatedAt;
}
