model ConnectedAircraft {
    id                    Int       @id @default(autoincrement())
    userId                String
    publicUser            Json
    lastHeartbeat         DateTime  @default(now())
    fmsStatus             String    @default("6")
    // position:
    posLat                Float?
    posLng                Float?
    posAlt                Int?
    posSpeed              Int?
    posHeading            Int?
    simulator             String?
    posH145active         Boolean   @default(false)
    posXplanePluginActive Boolean   @default(false)
    stationId             Int
    loginTime             DateTime  @default(now())
    esimatedLogoutTime    DateTime?
    logoutTime            DateTime?

    // relations:
    User        User          @relation(fields: [userId], references: [id], onDelete: Cascade)
    Station     Station       @relation(fields: [stationId], references: [id], onDelete: Cascade)
    PositionLog PositionLog[]
}
