Change prisma schema

This commit is contained in:
Hri7566 2023-10-27 14:52:54 -04:00
parent e8e44f632f
commit aa3bbff2a4
1 changed files with 15 additions and 0 deletions

View File

@ -9,3 +9,18 @@ datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model User {
id String @id @unique
name String
platformId String
platform String
Inventory Inventory[]
}
model Inventory {
id Int @id @unique @default(autoincrement())
userId String @unique
user User @relation(fields: [userId], references: [id])
items Json
}