mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-12 15:52:39 +10:00
33 lines
877 B
Plaintext
33 lines
877 B
Plaintext
enum ClientCapabilities {
|
|
PeerAPI @map("peerAPI") // other clients can use the HTTP API to P2P with this client
|
|
UserStatus @map("userStatus") // this client can report this user's status (playing, online, etc etc)
|
|
CloudSaves @map("cloudSaves") // ability to save to save slots
|
|
}
|
|
|
|
// References a device
|
|
model Client {
|
|
id String @id @default(uuid())
|
|
userId String
|
|
user User @relation(fields: [userId], references: [id])
|
|
|
|
capabilities ClientCapabilities[]
|
|
|
|
name String
|
|
platform Platform
|
|
lastConnected DateTime
|
|
|
|
peerAPI ClientPeerAPIConfiguration?
|
|
|
|
lastAccessedSaves SaveSlot[]
|
|
tokens APIToken[]
|
|
}
|
|
|
|
model ClientPeerAPIConfiguration {
|
|
id String @id @default(uuid())
|
|
|
|
clientId String @unique
|
|
client Client @relation(fields: [clientId], references: [id])
|
|
|
|
endpoints String[]
|
|
}
|