fishing-api/prisma/schema.prisma

32 lines
646 B
Plaintext
Raw Normal View History

2024-02-15 02:01:36 +01:00
// 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 {
2024-02-15 09:47:35 +01:00
id String @id
name String
color String
inventory Inventory @relation(fields: [inventoryId], references: [id])
inventoryId Int @unique
}
model Inventory {
id Int @id @default(autoincrement())
balance Int
items Json @default("[]")
User User?
}
model AuthToken {
id Int @id @default(autoincrement())
token String @unique
2024-02-15 02:01:36 +01:00
}