backend/prisma/schema.prisma

44 lines
956 B
Plaintext
Raw Normal View History

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())
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-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
url String
title String
details String
date DateTime @default(now())
}
model autodownload {
uuid String @id @default(uuid())
channel String
2023-03-03 16:44:40 +00:00
}