Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 987 Bytes
17aecfb eb29a95 b1a4d81 eb29a95 b1a4d81 eb29a95 17aecfb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
// 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 Model {
id String @id
createdAt DateTime @default(now())
title String
image String
likes Int?
downloads Int?
isPublic Boolean @default(false)
hf_user_id String?
Gallery Gallery[]
}
model Gallery {
id String @id @default(uuid())
hf_user_id String?
createdAt DateTime @default(now())
prompt String
image String
reactions Reaction[]
model Model @relation(fields: [modelId], references: [id])
modelId String
}
model Reaction {
id String @id @default(uuid())
createdAt DateTime @default(now())
emoji String
hf_user_id String
Gallery Gallery? @relation(fields: [galleryId], references: [id])
galleryId String?
}
|