package com.yimeng.okr.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("performance_score_item")
public class PerformanceScoreItem {

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

    private Long scoreId;

    /** KR or DIMENSION */
    private String itemType;

    private Long referenceId;

    /** Snapshot name at submission time */
    private String name;

    private Double maxScore;

    private Double score;

    private String description;

    private Integer sortOrder;

    /** Evidence snapshot for archival */
    private String snapshotJson;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
}
