package jnpf.entity.attendance;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 考勤本操作日志表
 *
 * @author Generated
 * @create 2026-04-15
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("ftb_attendance_book_operation_log")
public class AttendanceBookOperationLogEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId("F_Id")
    private String id;

    /**
     * 考勤本ID
     */
    @TableField("F_BookId")
    private String bookId;

    /**
     * 月份（格式：yyyy-MM）
     */
    @TableField("F_Month")
    private String month;

    /**
     * 考勤记录ID(关联ftb_attendance_book_record表)
     */
    @TableField("F_RecordId")
    private String recordId;

    /**
     * 员工ID
     */
    @TableField("F_EmployeeId")
    private String employeeId;

    /**
     * 操作内容描述
     */
    @TableField("F_OperationContent")
    private String operationContent;

    /**
     * 操作人ID
     */
    @TableField("F_OperatorId")
    private String operatorId;

    /**
     * 操作人姓名
     */
    @TableField("F_OperatorName")
    private String operatorName;

    /**
     * 操作时间
     */
    @TableField("F_OperationTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date operationTime;
}