mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-06-22 04:11:32 +10:00
feat: minimum support for unrefed object cleanup
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
|
||||
-- Rename game table columns
|
||||
ALTER TABLE "Game" RENAME COLUMN "mIconId" TO "mIconObjectId";
|
||||
ALTER TABLE "Game" RENAME COLUMN "mBannerId" TO "mBannerObjectId";
|
||||
ALTER TABLE "Game" RENAME COLUMN "mCoverId" TO "mCoverObjectId";
|
||||
ALTER TABLE "Game" RENAME COLUMN "mImageCarousel" TO "mImageCarouselObjectIds";
|
||||
ALTER TABLE "Game" RENAME COLUMN "mImageLibrary" TO "mImageLibraryObjectIds";
|
||||
|
||||
-- Rename saveslot table columns
|
||||
ALTER TABLE "SaveSlot" RENAME COLUMN "history" TO "historyObjectIds";
|
||||
@@ -24,11 +24,11 @@ model Game {
|
||||
mReviewCount Int
|
||||
mReviewRating Float // 0 to 1
|
||||
|
||||
mIconId String // linked to objects in s3
|
||||
mBannerId String // linked to objects in s3
|
||||
mCoverId String
|
||||
mImageCarousel String[] // linked to below array
|
||||
mImageLibrary String[] // linked to objects in s3
|
||||
mIconObjectId String // linked to objects in s3
|
||||
mBannerObjectId String // linked to objects in s3
|
||||
mCoverObjectId String
|
||||
mImageCarouselObjectIds String[] // linked to below array
|
||||
mImageLibraryObjectIds String[] // linked to objects in s3
|
||||
|
||||
versions GameVersion[]
|
||||
libraryBasePath String @unique // Base dir for all the game versions
|
||||
@@ -80,7 +80,7 @@ model SaveSlot {
|
||||
lastUsedClientId String?
|
||||
lastUsedClient Client? @relation(fields: [lastUsedClientId], references: [id])
|
||||
|
||||
history String[] // list of objects
|
||||
historyObjectIds String[] // list of objects
|
||||
historyChecksums String[] // list of hashes
|
||||
|
||||
@@id([gameId, userId, index], name: "id")
|
||||
|
||||
Reference in New Issue
Block a user