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

/**
 * 课程分类
 */
@Entity()
export class CourseClassify {
  @PrimaryGeneratedColumn('increment')
  id: number;

  @Column({ comment: '父级ID' })
  pid: number;

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

  @Column({ comment: '层级' })
  level: number;

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