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

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

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

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