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

/**
 * 学员课件学习信息
 */
@Entity()
export class CourseStudyCourseware extends IncrementIdEntity {
  @Column({ name: 'record_id', comment: '所属记录id' })
  recordId: number;

  @Column({ name: 'courseware_id', comment: '学习的课件id' })
  coursewareId: number;

  @Column({ name: 'study_progress', comment: '学习进度%' })
  studyProgress: number;

  @Column({ name: ' learning_duration', comment: '学习时常' })
  learningDuration: number;
}
