25 lines
439 B
Python
25 lines
439 B
Python
from pydantic import BaseModel, ConfigDict
|
|
|
|
|
|
class VideoCreate(BaseModel):
|
|
title: str
|
|
youtuber: str
|
|
thumbnailUrl: str
|
|
youtubeUrl: str
|
|
|
|
|
|
class VideoResponse(BaseModel):
|
|
id: int
|
|
title: str
|
|
youtuber: str
|
|
thumbnailUrl: str
|
|
youtubeUrl: str
|
|
isDownloaded: bool
|
|
profileIds: list[int]
|
|
|
|
model_config = ConfigDict(from_attributes=True)
|
|
|
|
|
|
class CleanupRequest(BaseModel):
|
|
excludeIds: list[int] = []
|