- Added API routes for fetching connected users, keywords, missions, and stations. - Created a new QueryProvider component for managing query states and socket events. - Introduced connection stores for dispatch and pilot, managing socket connections and states. - Updated Prisma schema for connected aircraft model. - Enhanced UI with toast notifications for status updates and chat interactions. - Implemented query functions for fetching connected users and keywords with error handling.
16 lines
540 B
Plaintext
16 lines
540 B
Plaintext
model ConnectedAircraft {
|
|
id Int @id @default(autoincrement())
|
|
userId String
|
|
publicUser Json
|
|
lastHeartbeat DateTime @default(now())
|
|
stationId Int
|
|
loginTime DateTime @default(now())
|
|
esimatedLogoutTime DateTime?
|
|
logoutTime DateTime?
|
|
positionLogIds Int[] @default([])
|
|
|
|
// relations:
|
|
User User @relation(fields: [userId], references: [id])
|
|
Station Station @relation(fields: [stationId], references: [id])
|
|
}
|