initial commit

This commit is contained in:
2026-07-20 18:21:31 +02:00
commit 42ce1eecae
83 changed files with 13896 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
import { Entity, PrimaryGeneratedColumn, Column, Index } from 'typeorm';
@Entity('event_logs')
@Index(['DeviceID', 'EventType'])
export class EventLog {
@PrimaryGeneratedColumn()
id: number;
@Column()
DeviceID: string;
@Column()
EventType: string;
@Column({ nullable: true })
Battery: number;
@Column({ type: 'datetime' })
Time: string;
@Column({ type: 'real', nullable: true })
Value: number;
@Column({ type: 'real', nullable: true })
lat: number;
@Column({ type: 'real', nullable: true })
lng: number;
@Column({ type: 'real', nullable: true })
Altitude: number;
@Column({ type: 'real', nullable: true })
Accuracy: number;
@Column({ nullable: true })
OriginDeviceID: string;
@Column({ nullable: true })
OriginDeviceName: string;
@Column({ nullable: true })
OriginDeviceType: string;
@Column({ nullable: true })
userId: number;
}