feat(db): 调整表结构 增加card_brand字符长度为255,新增diy_source自定义卡片品牌
This commit is contained in:
@@ -129,7 +129,7 @@ class Card(BaseModel, DateModel):
|
||||
|
||||
cert_number: Mapped[str] = mapped_column(String(50), comment='评级卡号')
|
||||
card_year: Mapped[str] = mapped_column(String(50), nullable=True, comment='卡片年份')
|
||||
card_brand: Mapped[str] = mapped_column(String(50), nullable=True, comment='卡片品牌')
|
||||
card_brand: Mapped[str] = mapped_column(String(255), nullable=True, comment='卡片品牌')
|
||||
card_score: Mapped[float] = mapped_column(DECIMAL(10, 1), nullable=True, comment='卡片评分')
|
||||
auto_score: Mapped[float] = mapped_column(DECIMAL(10, 1), nullable=True, comment='签字评分')
|
||||
card_name: Mapped[str] = mapped_column(String(225), nullable=True, comment='卡片名称')
|
||||
@@ -148,6 +148,7 @@ class Card(BaseModel, DateModel):
|
||||
Enum(base_schema.PlatformSourceType, inherit_schema=True),
|
||||
comment='来源,PSA、BGS、CGC、GBTC、CCG、BCTC :采集 、OTHER:自定义'
|
||||
)
|
||||
diy_source: Mapped[str] = mapped_column(String(50), nullable=True, comment='自定义品牌名')
|
||||
|
||||
collections: Mapped[list['UserCollection']] = relationship(
|
||||
back_populates='card',
|
||||
|
||||
Reference in New Issue
Block a user