package com.yimeng.okr.entity;

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

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("assessment_period")
public class AssessmentPeriod {

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

    private String name;

    @TableField("period_type")
    private PeriodType periodType;

    private LocalDate startDate;
    private LocalDate endDate;

    @TableField("status")
    private PeriodStatus status;

    private Long createdBy;

    @TableLogic
    private Integer deleted;

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

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