diff options
Diffstat (limited to 'prisma/schema.prisma')
| -rw-r--r-- | prisma/schema.prisma | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/prisma/schema.prisma b/prisma/schema.prisma new file mode 100644 index 0000000..f336e54 --- /dev/null +++ b/prisma/schema.prisma @@ -0,0 +1,31 @@ +datasource db { + provider = "postgresql" + url = env("DATABASE_URL") +} + +generator client { + provider = "prisma-client-js" +} + +model UserProfile { + id String @id @default(cuid()) + name String @unique + setting Json? + WatchListEpisode WatchListEpisode[] +} + +model WatchListEpisode { + id String @id @default(cuid()) + aniId String? + title String? + aniTitle String? + image String? + episode Int? + timeWatched Int? + duration Int? + provider String? + createdDate DateTime? @default(now()) + userProfile UserProfile @relation(fields: [userProfileId], references: [name]) + userProfileId String + watchId String +} |