mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-14 08:41:15 +10:00
feat: add cloudsave configuration w/ ludusavi search
This commit is contained in:
36
prisma/models/cloudsaves.prisma
Normal file
36
prisma/models/cloudsaves.prisma
Normal file
@ -0,0 +1,36 @@
|
||||
enum CloudSaveType {
|
||||
Ludusavi
|
||||
LuaScript
|
||||
}
|
||||
|
||||
model CloudSaveConfiguration {
|
||||
gameId String @id
|
||||
game Game @relation(fields: [gameId], references: [id])
|
||||
|
||||
type CloudSaveType
|
||||
|
||||
ludusaviEntryName String?
|
||||
ludusaviEntry LudusaviEntry? @relation(fields: [ludusaviEntryName], references: [name])
|
||||
|
||||
scriptContent String?
|
||||
}
|
||||
|
||||
model LudusaviEntry {
|
||||
name String @id
|
||||
steamId String?
|
||||
|
||||
entries LudusaviPlatformEntry[]
|
||||
configurations CloudSaveConfiguration[]
|
||||
}
|
||||
|
||||
model LudusaviPlatformEntry {
|
||||
ludusaviEntryName String
|
||||
ludusaviEntry LudusaviEntry @relation(fields: [ludusaviEntryName], references: [name])
|
||||
|
||||
platform Platform
|
||||
|
||||
files String[]
|
||||
registry String[]
|
||||
|
||||
@@id([ludusaviEntryName, platform])
|
||||
}
|
||||
@ -46,6 +46,8 @@ model Game {
|
||||
developers Company[] @relation(name: "developers")
|
||||
publishers Company[] @relation(name: "publishers")
|
||||
|
||||
cloudSaveConfiguration CloudSaveConfiguration?
|
||||
|
||||
@@unique([metadataSource, metadataId], name: "metadataKey")
|
||||
@@unique([libraryId, libraryPath], name: "libraryKey")
|
||||
}
|
||||
|
||||
@ -1,18 +0,0 @@
|
||||
model LudusaviEntry {
|
||||
name String @id
|
||||
steamId String?
|
||||
|
||||
entries LudusaviPlatformEntry[]
|
||||
}
|
||||
|
||||
model LudusaviPlatformEntry {
|
||||
ludusaviEntryName String
|
||||
ludusaviEntry LudusaviEntry @relation(fields: [ludusaviEntryName], references: [name])
|
||||
|
||||
platform Platform
|
||||
|
||||
files String[]
|
||||
registry String[]
|
||||
|
||||
@@id([ludusaviEntryName, platform])
|
||||
}
|
||||
Reference in New Issue
Block a user