import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

/**
 * 课程评价维度
 */
@Entity()
export class LiveEvaluate {
  @PrimaryGeneratedColumn('increment')
  id: number;

  @Column({ name: 'coruse_id', comment: '课程ID' })
  liveId: number;

  @Column({ comment: '维度名称', type: 'text' })
  dimensionality: string;

  @Column({ comment: '0/1 直播评价或学院自评', default: 0 })
  type: number;

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