build: 打通 FastAPI 与 Vue 最小工程、依赖与数据库连接
后端入口、配置、Redis 与 Alembic 迁移就位;前端 Vite 工程可安装可构建。
This commit is contained in:
1 parent
ec5835ca77
commit
977783c126
167 files changed
+26082
No files matched your search
@@ -0,0 +1,30 @@
|
||||
"""Let an agent offer reply buttons on messaging channels
|
||||
|
||||
Off by default: an agent shows the AI's choices as tappable buttons on
|
||||
WhatsApp, Messenger, Instagram and Telegram only once someone turns it on.
|
||||
|
||||
Revision ID: agent_quick_replies_001
|
||||
Revises: chat_channel_status_001
|
||||
Create Date: 2026-10-11
|
||||
"""
|
||||
from typing import Sequence, Union
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
# Keep revision ids under 32 characters: alembic_version.version_num is
|
||||
# varchar(32).
|
||||
revision: str = 'agent_quick_replies_001'
|
||||
down_revision: Union[str, None] = 'chat_channel_status_001'
|
||||
branch_labels: Union[str, Sequence[str], None] = None
|
||||
depends_on: Union[str, Sequence[str], None] = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
op.add_column('agents', sa.Column('channel_quick_replies', sa.Boolean(), nullable=False,
|
||||
server_default=sa.false()), if_not_exists=True)
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
op.drop_column('agents', 'channel_quick_replies', if_exists=True)
|
||||
Reference in new issue
Block a user