package com.lesingle.creation.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lesingle.creation.common.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 作业提交表实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_biz_homework_submission")
public class HomeworkSubmission extends BaseEntity {

    /**
     * 租户 ID
     */
    @TableField("tenant_id")
    private Long tenantId;

    /**
     * 作业 ID
     */
    @TableField("homework_id")
    private Long homeworkId;

    /**
     * 学生用户 ID
     */
    @TableField("student_id")
    private Long studentId;

    /**
     * 学生姓名
     */
    @TableField("student_name")
    private String studentName;

    /**
     * 提交内容
     */
    @TableField("content")
    private String content;

    /**
     * 提交附件列表（JSON 格式）
     */
    @TableField("attachments")
    private String attachments;

    /**
     * 提交状态：submitted/reviewing/returned
     */
    @TableField("status")
    private String status;

    /**
     * 提交时间
     */
    @TableField("submit_time")
    private java.time.LocalDateTime submitTime;

    /**
     * 批改时间
     */
    @TableField("review_time")
    private java.time.LocalDateTime reviewTime;

    /**
     * 批改人 ID
     */
    @TableField("reviewer_id")
    private Long reviewerId;

    /**
     * 批改评语
     */
    @TableField("review_comment")
    private String reviewComment;

    /**
     * 批改分数
     */
    @TableField("review_score")
    private BigDecimal reviewScore;
}
