mirror of
https://github.com/Drop-OSS/drop
synced 2026-08-27 14:23:05 -04:00
feat: finish migrating to new objectid naming
This commit is contained in:
parent
7eaf4bda68
commit
598c8f6358
11 changed files with 24 additions and 18 deletions
|
|
@ -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[]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue