import { EntityModel } from '@midwayjs/orm';
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 设备信息
        */
@EntityModel('t_sys_alarm')
export class AlarmEntity extends BaseEntity {
  @Column({ comment: '告警类别', type: 'varchar', default: '', length: 50 })
  alarm_type: string;

  @Column({ comment: '汇报时间', type: 'varchar', default: '', length: 50 })
  report_time: string;

  @Column({ comment: '汇报内容', type: 'varchar', default: '', length: 50 })
  report_content: string;


  @Column({ comment: '{name:"备注"}', type: 'varchar', default: '', length: 50 })
  remark: string;

  @Column({ comment: '{name:"状态",dict:{"1":"启用", "0":"停用"}}', type: 'int', default: 1, width: 0 })
  status: number;

}