35 lines
625 B
Plaintext
35 lines
625 B
Plaintext
// This is your Prisma schema file,
|
|
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
|
|
|
generator client {
|
|
provider = "prisma-client-js"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "postgresql"
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
model User {
|
|
id String @id @unique
|
|
name String
|
|
platformId String
|
|
platform String
|
|
Inventory Inventory[]
|
|
role Role
|
|
}
|
|
|
|
model Inventory {
|
|
id Int @id @unique @default(autoincrement())
|
|
userId String @unique
|
|
user User @relation(fields: [userId], references: [id])
|
|
items Json
|
|
}
|
|
|
|
enum Role {
|
|
NONE
|
|
MODERATOR
|
|
ADMINISTRATOR
|
|
OWNER
|
|
}
|