model PositionLog {
    id                  Int               @id @default(autoincrement())
    userId              String
    connectedAircraftId Int
    simulator           String
    lat                 Float
    lng                 Float
    alt                 Int
    altAGL              Int?
    speed               Int
    heading             Int
    timestamp           DateTime          @default(now())
    // relations:
    User                User              @relation(fields: [userId], references: [id], onDelete: Cascade)
    ConnectedAircraft   ConnectedAircraft @relation(fields: [connectedAircraftId], references: [id], onDelete: Cascade)
}
