feat: finish migrating to new objectid naming

This commit is contained in:
Huskydog9988
2025-05-08 19:42:46 -04:00
committed by DecDuck
parent 7f7d8c8f45
commit 14f0833d17
11 changed files with 24 additions and 18 deletions

View File

@@ -8,3 +8,9 @@ ALTER TABLE "Game" RENAME COLUMN "mImageLibrary" TO "mImageLibraryObjectIds";
-- Rename saveslot table columns
ALTER TABLE "SaveSlot" RENAME COLUMN "history" TO "historyObjectIds";
-- Rename article table columns
ALTER TABLE "Article" RENAME COLUMN "image" TO "imageObjectId";
-- Rename user table columns
ALTER TABLE "User" RENAME COLUMN "profilePicture" TO "profilePictureObjectId";

View File

@@ -13,8 +13,8 @@ model Article {
tags Tag[]
image String? // Object ID
publishedAt DateTime @default(now())
imageObjectId String? // Object ID
publishedAt DateTime @default(now())
author User? @relation(fields: [authorId], references: [id]) // Optional, if no user, it's a system post
authorId String?

View File

@@ -4,9 +4,9 @@ model User {
admin Boolean @default(false)
enabled Boolean @default(true)
email String
displayName String
profilePicture String // Object
email String
displayName String
profilePictureObjectId String // Object
authMecs LinkedAuthMec[]
clients Client[]