package top.tqx.demo_1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName(value = "exam_record", autoResultMap = true)
public class ExamRecord implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @TableField(value = "record_id")
    private String recordId;

    @TableField(value = "paper_id")
    private String paperId;

    @TableField(value = "answer_type")
    private String answerType;

    @TableField(value = "user_id")
    private Long userId;

    @TableField(value = "status")
    private String status;

    @TableField(value = "total_score")
    private BigDecimal totalScore;

    @TableField(value = "submit_time")
    private LocalDateTime submitTime;

    @TableField(value = "graded_time")
    private LocalDateTime gradedTime;

    @TableField(value = "graded_by")
    private Long gradedBy;

    @TableField(value = "time_spent")
    private Integer timeSpent;

    @TableField(value = "start_time")
    private LocalDateTime startTime;

    @TableField(value = "last_active_time")
    private LocalDateTime lastActiveTime;

    @TableField(value = "created_at")
    private LocalDateTime createdAt;

    @TableField(value = "updated_at")
    private LocalDateTime updatedAt;
}