feat: web UI chat render, panels, presence + analytics
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
"""dialogs
|
||||
|
||||
Revision ID: d5f9b2c8e3a1
|
||||
Revises: c4e8a1f7d9b2
|
||||
Create Date: 2026-05-31 18:00:00.000000
|
||||
|
||||
"""
|
||||
|
||||
from collections.abc import Sequence
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
revision: str = "d5f9b2c8e3a1"
|
||||
down_revision: str | None = "c4e8a1f7d9b2"
|
||||
branch_labels: str | Sequence[str] | None = None
|
||||
depends_on: str | Sequence[str] | None = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
op.create_table(
|
||||
"dialogs",
|
||||
sa.Column("account_id", sa.BigInteger(), nullable=False),
|
||||
sa.Column("chat_id", sa.BigInteger(), nullable=False),
|
||||
sa.Column(
|
||||
"updated_at",
|
||||
sa.DateTime(timezone=True),
|
||||
server_default=sa.text("now()"),
|
||||
nullable=False,
|
||||
),
|
||||
sa.PrimaryKeyConstraint("account_id", "chat_id"),
|
||||
)
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
op.drop_table("dialogs")
|
||||
Reference in New Issue
Block a user