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

/**
 * 设备IPs
 */
@Entity()
export class DeviceIP extends IncrementIdEntity {
  @Column({
    comment: '设备ID',
  })
  device: number;
  @Column({
    comment: '组别',
    //  type: 'varchar',
    //  length: 20,
  })
  group: number;
  @Column({
    comment: 'IP地址',
    //  type: 'varchar',
    //  length: 15,
    default: '127.0.0.1',
  })
  ip: string;
  @Column({
    comment: '备注说明',
    default: '',
  })
  comment: string;
}
