package com.yimeng.okr.entity;

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

import java.time.LocalDateTime;

@Data
@TableName("kpi_config")
public class KpiConfig {

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

    private Long periodId;
    private Long userId;
    private String itemsJson;
    private Integer version;
    private String snapshotJson;
    private LocalDateTime lockedAt;

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

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