rename tables
This commit is contained in:
1 parent
b622d2cdbd
commit
66dcdaeb70
1 file changed
+6
@@ -20,17 +20,21 @@ model Listing {
|
|||||||
updatedAt DateTime @updatedAt
|
updatedAt DateTime @updatedAt
|
||||||
|
|
||||||
@@index([seller])
|
@@index([seller])
|
||||||
|
@@map("listings")
|
||||||
}
|
}
|
||||||
|
|
||||||
model User {
|
model User {
|
||||||
id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
||||||
discogs String? @unique
|
discogs String? @unique
|
||||||
|
name String @default("unknown")
|
||||||
data Json
|
data Json
|
||||||
|
|
||||||
createdAt DateTime @default(now())
|
createdAt DateTime @default(now())
|
||||||
updatedAt DateTime @updatedAt
|
updatedAt DateTime @updatedAt
|
||||||
|
|
||||||
wants Want[]
|
wants Want[]
|
||||||
|
|
||||||
|
@@map("users")
|
||||||
}
|
}
|
||||||
|
|
||||||
model Want {
|
model Want {
|
||||||
@@ -48,4 +52,6 @@ model Want {
|
|||||||
|
|
||||||
@@unique([userId, release])
|
@@unique([userId, release])
|
||||||
@@index([release])
|
@@index([release])
|
||||||
|
|
||||||
|
@@map("wants")
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user