mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-01-31 15:37:09 +01:00
feat: finish migrating to new objectid naming
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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?
|
||||
|
||||
@@ -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[]
|
||||
|
||||
Reference in New Issue
Block a user