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

/**
 * 学员课程课后习题
 */
@Entity()
export class LiveQuestionAnswer extends IncrementIdEntity {
  @Column({ name: 'record_id', comment: '学习记录Id' })
  liveId: number;

  @Column({ name: 'question_id', comment: '试题ID' })
  questionId: number;

  @Column({ name: 'question_score', comment: '该题分值' })
  questionScore: number;

  @Column({ comment: '我的得分' })
  score: number;

  @Column({ name: 'mistake_score', comment: '错题得分', default: 0 })
  mistakeScore: number;

  @Column({ name: 'user_answer', type: 'longtext', comment: '我的答案' })
  userAnswer: string;

  @Column({ comment: '老师的评语', default: null, type: 'longtext' })
  comment: string;
}
