package com.yimeng.okr.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.yimeng.okr.enums.KrStatus;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("kr_key_result")
public class KrKeyResult {

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

    private Long objectiveId;
    private String title;
    private Double targetValue;
    private Double currentValue;
    private KrStatus status;
    private Integer weight;
    private Long assignedTo;
    private Long sourceKrId;

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

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