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

/**
 * 试题分类表（树形结构）
 */
@Entity()
export class ExamPaperClassify extends IncrementIdEntity {
  @Column({ comment: '分类名' })
  name: string;

  @Column({ comment: '父类id', default: 0 })
  pid: number;

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