EmperorFred/data/models/TwitchComponent.py

13 lines
351 B
Python
Raw Permalink Normal View History

2025-12-06 02:21:47 +00:00
from sqlalchemy import String
from sqlalchemy.orm import mapped_column, Mapped
from libs.Db import Db
class TwitchComponent(Db.Model):
__tablename__ = 'twitch_components'
id:Mapped[int] = mapped_column(primary_key=True)
name:Mapped[str] = mapped_column(String(64), nullable=False)
active:Mapped[bool] = mapped_column(default=True)