17 lines
407 B
Python
17 lines
407 B
Python
from datetime import datetime
|
|
from typing import List
|
|
from pydantic import BaseModel
|
|
|
|
class ChannelCreate(BaseModel):
|
|
"""Pydantic model for creating channels"""
|
|
urls: List[str]
|
|
name: str
|
|
group_title: str
|
|
tvg_id: str
|
|
tvg_logo: str
|
|
tvg_name: str
|
|
|
|
class ChannelResponse(ChannelCreate):
|
|
"""Pydantic model for channel responses"""
|
|
created_at: datetime
|
|
updated_at: datetime |