2023-03-03 16:44:40 +00:00
|
|
|
// 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 = "postgresql"
|
|
|
|
url = env("DATABASE_URL")
|
|
|
|
}
|
|
|
|
|
|
|
|
model videos {
|
|
|
|
uuid String @id @default(uuid())
|
2023-03-10 14:20:56 +00:00
|
|
|
id String @unique
|
2023-03-03 16:44:40 +00:00
|
|
|
title String
|
|
|
|
description String
|
|
|
|
thumbnail String
|
|
|
|
source String
|
|
|
|
published String
|
|
|
|
archived String
|
|
|
|
channel String
|
|
|
|
channelId String
|
|
|
|
channelVerified Boolean
|
|
|
|
channelAvatar String
|
|
|
|
playlist String?
|
|
|
|
disabled Boolean @default(false)
|
2024-03-15 17:11:12 +00:00
|
|
|
hasBeenReported Boolean @default(false)
|
2024-01-18 18:54:35 +00:00
|
|
|
|
|
|
|
@@index([title], name: "idx_title")
|
2023-03-03 16:44:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
model reports {
|
|
|
|
uuid String @id @default(uuid())
|
|
|
|
target String
|
|
|
|
title String
|
|
|
|
details String
|
|
|
|
date DateTime @default(now())
|
2023-03-05 14:38:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
model autodownload {
|
|
|
|
uuid String @id @default(uuid())
|
|
|
|
channel String
|
2023-03-03 16:44:40 +00:00
|
|
|
}
|