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

/**
 * 在线教学答题
 */
@Entity()
export class LiveQuestion {
  @PrimaryGeneratedColumn('increment')
  id: number;

  @Column({ name: 'live_id', comment: '直播id' })
  liveId: number;

  @Column({ name: 'question_id', comment: '试题ID（对应Question表）' })
  questionId: number;

  @Column({ comment: '该题分值' })
  score: number;

  @Column({ comment: '题类型' })
  type: number;

  @Column({ name: 'is_fixed', comment: '固定选题、随机选题' })
  isFixed: number;

  @Column({
    default: 0,
    select: false,
    name: 'del_flag',
    comment: '是否删除：0否/1是',
  })
  delFlag: number;
}
