mirror of
https://github.com/ThisIsBenny/wishlist-app.git
synced 2025-04-19 23:37:41 +00:00
31 lines
762 B
Text
31 lines
762 B
Text
// 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 = "sqlite"
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
model Wishlist {
|
|
id String @id @default(uuid())
|
|
title String
|
|
imageSrc String
|
|
slugUrlText String @unique
|
|
description String @default("")
|
|
items Item[]
|
|
}
|
|
|
|
model Item {
|
|
id Int @id @default(autoincrement())
|
|
title String
|
|
url String @default("")
|
|
imageSrc String @default("")
|
|
description String
|
|
bought Boolean @default(false)
|
|
wishlist Wishlist @relation(fields: [wishlistId], references: [id])
|
|
wishlistId String
|
|
}
|