f5d6745ed0
Full-stack IPTV management system with Xtream Codes API compatibility, multi-account provider fan-out, Jellyfin local library integration, real-time dashboard, EPG support, and A/V-sync-safe stream recovery.
14 lines
516 B
Python
14 lines
516 B
Python
from sqlalchemy import Column, Integer, String, Boolean, DateTime, func
|
|
from ..database import Base
|
|
|
|
|
|
class EpgSource(Base):
|
|
__tablename__ = "epg_sources"
|
|
|
|
id = Column(Integer, primary_key=True, index=True)
|
|
name = Column(String(200), nullable=False)
|
|
url = Column(String(2000), nullable=False)
|
|
last_fetched_at = Column(DateTime(timezone=True), nullable=True)
|
|
is_active = Column(Boolean, default=True, nullable=False)
|
|
created_at = Column(DateTime(timezone=True), server_default=func.now())
|