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

@Entity()
export class Org extends IncrementIdEntity {
  @Column({ comment: '机构名称' })
  name: string;

  @Column({ comment: '机构描述' })
  desc: string;

  @Column({ default: 0, comment: '上级机构 ID' })
  pid: number;
}
