From 66dcdaeb70c2a5f7fea7a4dcf585f514a8cdfa99 Mon Sep 17 00:00:00 2001 From: ntr Date: Sat, 6 Aug 2022 18:18:24 +1000 Subject: [PATCH] rename tables --- server/prisma/schema.prisma | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/prisma/schema.prisma b/server/prisma/schema.prisma index 033e98f..8f02d3a 100644 --- a/server/prisma/schema.prisma +++ b/server/prisma/schema.prisma @@ -20,17 +20,21 @@ model Listing { updatedAt DateTime @updatedAt @@index([seller]) + @@map("listings") } model User { id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid discogs String? @unique + name String @default("unknown") data Json createdAt DateTime @default(now()) updatedAt DateTime @updatedAt wants Want[] + + @@map("users") } model Want { @@ -48,4 +52,6 @@ model Want { @@unique([userId, release]) @@index([release]) + + @@map("wants") }