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

/**
 * 学员课后维度评价
 */
@Entity()
export class CourseStudyEvaluate extends IncrementIdEntity {
  @Column({ name: 'record_id', comment: '所属记录id' })
  recordId: number;

  @Column({ type: 'longtext', name: 'dimension_id', comment: '评价所属维度Id' })
  dimensionId: string;

  @Column({ comment: '评分值1-5' })
  value: number;

  @Column({ comment: '评论类型，0为课程评价1为自我评价' })
  type: number;
}
