feat(db): 调整表结构 增加card_brand字符长度为255,新增diy_source自定义卡片品牌

This commit is contained in:
xingc
2025-04-25 17:06:22 +08:00
parent 840b2a7760
commit 5dd7910167
4 changed files with 12 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ def upgrade() -> None:
op.create_table('system_cards',
sa.Column('cert_number', sa.String(length=50), nullable=False, comment='评级卡号'),
sa.Column('card_year', sa.String(length=50), nullable=True, comment='卡片年份'),
sa.Column('card_brand', sa.String(length=50), nullable=True, comment='卡片品牌'),
sa.Column('card_brand', sa.String(length=255), nullable=True, comment='卡片品牌'),
sa.Column('card_score', sa.DECIMAL(precision=10, scale=1), nullable=True, comment='卡片评分'),
sa.Column('auto_score', sa.DECIMAL(precision=10, scale=1), nullable=True, comment='签字评分'),
sa.Column('card_name', sa.String(length=225), nullable=True, comment='卡片名称'),