feat: 管理端用户列表显示姓名和公司

This commit is contained in:
Nixevol
2026-11-18 11:53:05 +08:00
parent 032c5280e7
commit 199960276a
8 changed files with 86 additions and 1 deletions
@@ -0,0 +1,21 @@
"""账号记下首页上的姓名和部门,供管理端用户列表显示。"""
from alembic import op
import sqlalchemy as sa
revision = "0012_account_profile"
down_revision = "0011_drop_proxy_list"
branch_labels = None
depends_on = None
def upgrade() -> None:
with op.batch_alter_table("accounts") as batch:
batch.add_column(sa.Column("user_name", sa.String(length=64), server_default="", nullable=False))
batch.add_column(sa.Column("company", sa.String(length=300), server_default="", nullable=False))
def downgrade() -> None:
with op.batch_alter_table("accounts") as batch:
batch.drop_column("company")
batch.drop_column("user_name")