package top.continew.admin.business.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import top.continew.admin.business.enums.AssignmentsTypeEnum;
import top.continew.starter.extension.crud.model.entity.BaseIdDO;

import java.io.Serial;
import java.time.LocalDateTime;

/**
 * 作业表实体
 *
 * @author 张波
 * @since 2024/10/22 11:44
 */
@Data
@TableName("assignments")
public class AssignmentsDO extends BaseIdDO {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 课程表ID
     */
    private Long courseId;

    /**
     * 分类(1:作业，2:考试)
     */
    private AssignmentsTypeEnum type;

    /**
     * 作业名称
     */
    private String name;

    /**
     * 作业要求
     */
    private String requirements;

    /**
     * 满分
     */
    private Integer fullScore;

    /**
     * 开始时间
     */
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    private LocalDateTime endTime;

    /**
     * 示例图片
     */
    private String exampleImages;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}