blob: 040864e40d4b28e7d4b6660d09adaa5f6505a7d1 (
plain) (
blame)
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
|
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?
nextId String?
nextNumber Int?
dub Boolean?
createdDate DateTime? @default(now())
userProfile UserProfile @relation(fields: [userProfileId], references: [name], onDelete: Cascade)
userProfileId String
watchId String
}
|