From 96dc02046b9a03a3fb04c3df1de4e395e6165fea Mon Sep 17 00:00:00 2001 From: minhd-vu Date: Sat, 10 Feb 2024 02:02:44 -0500 Subject: [PATCH] rename collections --- nextjs/prisma/schema.prisma | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nextjs/prisma/schema.prisma b/nextjs/prisma/schema.prisma index 3100ae0..edc2473 100644 --- a/nextjs/prisma/schema.prisma +++ b/nextjs/prisma/schema.prisma @@ -19,6 +19,8 @@ model User { party Party? @relation("PartyPlayers", fields: [partyId], references: [id]) partyId String? @map("party_id") @db.ObjectId targetId String? @map("target_id") @db.ObjectId + + @@map("users") } model Party { @@ -29,6 +31,8 @@ model Party { players User[] @relation("PartyPlayers") winnerId String? @map("winner_id") @db.ObjectId + + @@map("parties") } enum Mode {