got something working thats only a little hacky
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- AlterIndex
|
||||
ALTER INDEX "SocialCard_projectId_unique" RENAME TO "SocialCard.projectId_unique";
|
||||
@@ -65,8 +65,8 @@ model Project {
|
||||
|
||||
model SocialCard {
|
||||
id String @id @default(uuid())
|
||||
projectId String
|
||||
project Project @relation(fields: [projectId], references: [id])
|
||||
projectId String @unique
|
||||
project Project @relation(fields: [projectId], references: [id])
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user