13 lines
451 B
Python
13 lines
451 B
Python
from sqlalchemy import Column, String, Boolean
|
|
from ..db.database import Base
|
|
|
|
class LofiChannel(Base):
|
|
__tablename__ = "lofi_channels"
|
|
|
|
id = Column(String, primary_key=True, index=True)
|
|
name = Column(String, nullable=False)
|
|
stream_url = Column(String, nullable=False)
|
|
image_path = Column(String)
|
|
description = Column(String)
|
|
source_platform = Column(String, default="youtube")
|
|
is_active = Column(Boolean, default=True) |