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

/**
 * 设备部件
 */
@Entity()
export class DeviceParts extends IncrementIdEntity {
  @Column({
    comment: '设备ID',
  })
  device: number;
  @Column({
    comment: '部件名（唯一）',
  })
  name: string;
  @Column({
    comment: '部件键值',
  })
  keycode: string;
  @Column({
    comment: '部件说明',
    default: '',
  })
  comment: string;
}
