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

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

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

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