import { BaseEntity } from '../../base/entity/base';
|
import { Column, Entity, Index } from 'typeorm';
|
|
/**
|
* 分拣员健康告警信息
|
*/
|
@Entity('t_push_sorter_alarm')
|
export class PushSorterAlarmEntity extends BaseEntity {
|
@Index()
|
@Column({ comment: '身份证号', length: 18 })
|
idCard: string;
|
|
@Column({ comment: '所属单位' })
|
departmentId: number;
|
|
departmentName: string;
|
|
@Index()
|
@Column({ comment: '数据时间' })
|
uploadTime: Date;
|
|
|
@Column({ comment: '报警类型' })
|
alarmType: string;
|
|
@Column({ comment: '报警内容', type: 'text', nullable: true })
|
content: string;
|
|
@Column({ comment: '报警级别', dict: ['一般', '中等', '严重'], default: '一般' })
|
alarmLevel: string;
|
|
@Column({ comment: '处理状态', dict: ['未处理', '已处理'], default: 0 })
|
status: number;
|
|
|
@Column({ comment: '处理人ID', nullable: true })
|
handleUser: number;
|
|
@Column({ comment: '处理时间', nullable: true })
|
handleTime: Date;
|
|
|
}
|