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

/**
 * 设备表
 */
@Entity()
export class Device extends IncrementIdEntity {
  @Column({ comment: '设备名称' /* , type: 'varchar', length: 30 */ })
  name: string;
  @Column({ comment: '设备键值' /* , type: 'varchar', length: 30 */ })
  keycode: string;
  @Column({ comment: '号位ID' })
  position: number;
  @Column({ comment: '分组数量' })
  groups: number;
  @Column({ comment: '设备说明', nullable: true, default: '' })
  comment: string;
  @Column({ comment: '设备分类ID' })
  classify: number;
}
