import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 分拣员轨迹信息
 */
@Entity('t_push_sorter_gps')
export class PushSorterGpsEntity extends BaseEntity {
    @Index()
    @Column({ comment: '身份证号', length: 18 })
    idCard: string;

    @Column({ comment: '姓名', length: 18 })
    name: string;


    @Column({ comment: '所属单位' })
    departmentId: number;

    departmentName: string;

    @Index()
    @Column({ comment: '数据时间' })
    uploadTime: Date;

    @Column({ comment: '经度', type: 'decimal', precision: 10, scale: 7 })
    longitude: number;
    
    @Column({ comment: '纬度', type: 'decimal', precision: 10, scale: 7 })
    latitude: number;

    @Column({ comment: '高程', type: 'decimal', precision: 10, scale: 7 })
    height: number;

    @Column({ comment: '速度', type: 'decimal', precision: 5, scale: 2 })
    speed: number;

    @Column({ comment: '精度', type: 'decimal', precision: 5, scale: 2 })
    accuracy: number;


}