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
43
44
| import { BaseEntity } from '../../base/entity/base';
| import { Column, Entity, Index } from 'typeorm';
|
| /**
| * 车辆GPS数据
| */
| @Entity('t_operation_vehicle_gps')
| export class PushVehicleGpsEntity extends BaseEntity {
| @Index()
| @Column({ comment: '设备序列号' })
| sn: string;
|
| @Column({ comment: '消息序列号' })
| msgSeq: string;
|
| @Index()
| @Column({ comment: '消息创建时间', nullable: true })
| createDate: Date;
|
| @Index()
| @Column({ comment: '车牌号', nullable: true })
| vehicleNo: string;
|
| @Column({ comment: 'GPS定位时间', nullable: true })
| gpsTime: Date;
|
| @Column({ comment: '经度', type: 'decimal', precision: 10, scale: 6, nullable: true })
| longitude: number;
|
| @Column({ comment: '纬度', type: 'decimal', precision: 10, scale: 6, nullable: true })
| latitude: number;
|
| @Column({ comment: '速度', type: 'decimal', precision: 5, scale: 2, nullable: true })
| speed: number;
|
| @Column({ comment: '方向角', type: 'int', nullable: true })
| direction: number;
|
| @Column({ comment: '海拔高度', type: 'decimal', precision: 6, scale: 2, nullable: true })
| elevation: number;
|
| @Column({ comment: '定位状态', dict: ['有效定位', '无效定位'], default: 0 })
| status: number;
| }
|
|