mirror of https://github.com/preservetube/auto.git
42 lines
917 B
Plaintext
42 lines
917 B
Plaintext
// 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
|
|
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)
|
|
}
|
|
|
|
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
|
|
} |