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 | |
image String? | |
likes Int? | |
downloads Int? | |
instance_prompt String? | |
isPublic Boolean | |
likes7d Int? | |
user User? | |
userId String? | |
metadata String? | |
base_model 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? | |
comments Comment[] | |
} | |
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? | |
gallery Gallery? | |
galleryId String? | |
} | |
model User { | |
id String | |
createdAt DateTime | |
sub String | |
name String | |
preferred_username String | |
picture String? | |
comments Comment[] | |
reactions Reaction[] | |
gallery Gallery[] | |
models Model[] | |
} | |