Change prisma schema
This commit is contained in:
parent
e8e44f632f
commit
aa3bbff2a4
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue