Refactored DB schema. Channels table to have uuid as primary key. Modified endpoints accordingly
Some checks failed
AWS Deploy on Push / build (push) Failing after 1m9s
Some checks failed
AWS Deploy on Push / build (push) Failing after 1m9s
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from datetime import datetime
|
||||
from typing import List
|
||||
from uuid import UUID
|
||||
from pydantic import BaseModel
|
||||
|
||||
class ChannelCreate(BaseModel):
|
||||
@@ -11,7 +12,15 @@ class ChannelCreate(BaseModel):
|
||||
tvg_logo: str
|
||||
tvg_name: str
|
||||
|
||||
class ChannelUpdate(ChannelCreate):
|
||||
"""Pydantic model for updating channels"""
|
||||
pass
|
||||
|
||||
class ChannelResponse(ChannelCreate):
|
||||
"""Pydantic model for channel responses"""
|
||||
id: UUID
|
||||
created_at: datetime
|
||||
updated_at: datetime
|
||||
updated_at: datetime
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
Reference in New Issue
Block a user