40 lines
1.0 KiB
Python
40 lines
1.0 KiB
Python
"""added a minimal user object.
|
|
|
|
Revision ID: 9692349958be
|
|
Revises:
|
|
Create Date: 2026-04-05 20:37:24.543241
|
|
|
|
"""
|
|
|
|
from typing import Sequence, Union
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision: str = "9692349958be"
|
|
down_revision: Union[str, Sequence[str], None] = None
|
|
branch_labels: Union[str, Sequence[str], None] = None
|
|
depends_on: Union[str, Sequence[str], None] = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
"""Upgrade schema."""
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.create_table(
|
|
"users",
|
|
sa.Column("id", sa.BIGINT(), nullable=False),
|
|
sa.Column("support_thread_id", sa.BIGINT(), nullable=True),
|
|
sa.PrimaryKeyConstraint("id"),
|
|
sa.UniqueConstraint("id"),
|
|
sa.UniqueConstraint("support_thread_id"),
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade() -> None:
|
|
"""Downgrade schema."""
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_table("users")
|
|
# ### end Alembic commands ###
|