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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
| 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;
|
|
| }
|
|