Initial commit: VoIdeaAI - voice-first AI idea assistant
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
"""BotCommand model — Telegram bot commands with enable/disable toggle."""
|
||||
|
||||
from sqlalchemy import Boolean, String
|
||||
from sqlalchemy.orm import Mapped, mapped_column
|
||||
from app.core.base import SQLBase, TimestampMixin, UUIDMixin
|
||||
|
||||
|
||||
class BotCommand(SQLBase, UUIDMixin, TimestampMixin):
|
||||
__tablename__ = "bot_commands"
|
||||
|
||||
name: Mapped[str] = mapped_column(
|
||||
String(50), unique=True, nullable=False, index=True
|
||||
)
|
||||
description: Mapped[str] = mapped_column(
|
||||
String(255), nullable=False
|
||||
)
|
||||
enabled: Mapped[bool] = mapped_column(
|
||||
Boolean, default=True, nullable=False
|
||||
)
|
||||
requires_auth: Mapped[bool] = mapped_column(
|
||||
Boolean, default=False, nullable=False
|
||||
)
|
||||
Reference in New Issue
Block a user