package org.dromara.main.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 能力考试作答主记录表 main_exam_ability_attempt
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("main_exam_ability_attempt")
public class MainExamAbilityAttempt extends BaseEntity {

    @TableId(value = "id")
    private Long id;

    private Long applyId; // 关联 main_exam_apply.id
    private Long evaluationId;
    private Long abilityConfigId;
    private Long thirdExamInfoId;
    private String thirdExamName;
    private String thirdUserId;
    private Integer attemptNo;
    private String attemptStatus; // 0待开始 1进行中 2已交卷 3已同步
    private Date startTime;
    private Date submitTime;
    private Integer durationSeconds;
    private BigDecimal totalScore;
    private BigDecimal passScore;
    private String finalResult; // 1通过 2未通过
    private String syncStatus; // 0未同步 1已同步

    @TableLogic
    private String delFlag;
}
