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
| import { BaseEntity } from '../../base/entity/base';
| import { Column, Entity, Index } from 'typeorm';
|
| /**
| * 车载监控的GPS位置数据
| */
| @Entity('t_push_camera_gps')
| export class PushCameraGpsEntity extends BaseEntity {
| @Index()
| @Column({ comment: '设备序列号' })
| sn: string;
|
| @Column({ comment: '消息序列号' })
| msgSeq: string;
|
| @Index()
| @Column({ comment: '消息创建时间', nullable: true })
| createDate: Date;
|
| @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: '定位精度' })
| status: string;
| }
|
|