package com.reading.platform.entity;

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

import java.time.LocalDateTime;

/**
 * Task Completion Entity
 */
@Data
@TableName("task_completions")
public class TaskCompletion {

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

    private Long taskId;

    private Long studentId;

    private String status;

    private LocalDateTime completedAt;

    private String content;

    private String attachments;

    private Integer rating;

    private String feedback;

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

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

    @TableLogic
    private Integer deleted;

}
