import { IncrementIdEntity } from 'src/common/entities/increment-id.entity';
import { Column, Entity } from 'typeorm';

/**
 * 学员在线考试表
 */
@Entity()
export class StudentOnlineExam extends IncrementIdEntity {
  @Column({ name: 'user_id', comment: '学员Id' })
  userId: string;

  @Column({ name: 'exam_id', comment: '发布的考试ID' })
  examId: number;

  @Column({ comment: '错题数', default: 0 })
  mistakes: number;

  @Column({ name: 'exam_times', comment: '考试允许次数' })
  examTimes: number;

  // @Column({ comment: '对于学员的考试状态', default: 0 })
  // status: number;
  // @Column({ name: 'my_exam_times', comment: '我已考试的次数', default: 0 })
  // myExamTimes: number;
}
