Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
// 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 | |
createdAt DateTime | |
title String | |
image String | |
likes Int? | |
downloads Int? | |
isPublic Boolean | |
user User? | |
userId String? | |
gallery Gallery[] | |
comments Comment[] | |
} | |
model Gallery { | |
id String | |
createdAt DateTime | |
prompt String | |
image String | |
isPublic Boolean | |
reactions Reaction[] | |
model Model | |
modelId String | |
user User? | |
userId String? | |
} | |
model Reaction { | |
id String | |
createdAt DateTime | |
emoji String | |
user User | |
gallery Gallery? | |
userId String | |
galleryId String? | |
} | |
model Comment { | |
id String | |
createdAt DateTime | |
text String | |
user User | |
userId String | |
model Model? | |
modelId String? | |
} | |
model User { | |
id String | |
createdAt DateTime | |
sub String | |
name String | |
preferred_username String | |
picture String? | |
comments Comment[] | |
reactions Reaction[] | |
gallery Gallery[] | |
models Model[] | |
} | |