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

/**
 * 在线教学观众
 */
@Entity()
export class LiveStudent {
  @PrimaryGeneratedColumn('increment')
  id: number;

  @Column({ name: 'student_id', type: 'longtext', comment: '学员id' })
  studentId: string;

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

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