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

/**
 * 科目分类
 */
@Entity()
export class SubjectClassify extends IncrementIdEntity {
  @Column({ comment: '训练类型ID' })
  train: number;

  @Column({ comment: '分类名' })
  name: string;

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

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