import { BaseEntity } from '../../base/entity/base';
|
import { Column, Entity, Index } from 'typeorm';
|
|
/**
|
* 分拣员健康监测信息
|
*/
|
@Entity('t_push_sorter_health')
|
export class PushSorterHealthEntity extends BaseEntity {
|
@Index()
|
@Column({ comment: '身份证号', length: 18 })
|
idCard: string;
|
|
@Column({ comment: '所属单位' })
|
departmentId: number;
|
|
departmentName: string;
|
|
@Index()
|
@Column({ comment: '数据时间' })
|
uploadTime: Date;
|
|
@Column({ comment: '体温', type: 'decimal', precision: 3, scale: 1 })
|
temperature: number;
|
|
@Column({ comment: '心率' })
|
heartRate: number;
|
|
@Column({ comment: '收缩压' })
|
bloodPressureHigh: number;
|
|
@Column({ comment: '舒张压' })
|
bloodPressureLow: number;
|
|
@Column({ comment: '血氧饱和度', type: 'decimal', precision: 4, scale: 1 })
|
bloodOxygen: number;
|
|
// add more if needed
|
|
|
}
|