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

/**
 * 课程章节内容
 */
@Entity()
export class courseSectionContent {
  @PrimaryGeneratedColumn('increment')
  id: number;

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

  @Column({ type: 'longtext', comment: '章节名称' })
  name: string;

  @Column({ comment: '章节简介说明', type: 'longtext' })
  explain: string;

  @Column({ name: 'serial_number', comment: '章节在当前课程中的序号' })
  serialNumber: number;

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