wangrong
2022-07-08 7e9badac4f3df3650e72bd419f9cdaa485b054d6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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;
 
}