wangrong
2022-03-23 9e3033c25283dff92244ccc0156b3ad1ee409767
src/app/modules/business/entity/basedevicestatus.ts
@@ -2,29 +2,29 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 设备状态表
        */
        * 设备状态
        */
@EntityModel('t_base_devicestatus') 
export class Basedevicestatus extends BaseEntity { 
@Column({ comment:'类别   1-心跳   2-告警', type:'int', default:null, width:0})
@Column({ comment:'{name:"类别",dict:{"1":"心跳", "2":"告警"}}', type:'int', default:null, width:0})
alarm_type: number;
@Column({ comment:'设备物理ID', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'null', length:50})
device_id: string;
@Column({ comment:'设备逻辑ID', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50})
logic_id: string;
@Column({ comment:'备注', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
@Column({ comment:'上报内容,可以是json格式', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"上报内容",tips:"可以是json格式"}', type:'varchar', default:'null', length:200})
report_content: string;
@Column({ comment:'上报时间', type:'datetime'})
@Column({ comment:'{name:"上报时间"}', type:'datetime'})
report_time: Date;
@Column({ comment:'状态,1-启用  0-停用', type:'int', default:1, width:0})
@Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0})
status: number;
}