From 093e8cbb5eb86ee3e1894f5d3748b9cdb5027ce7 Mon Sep 17 00:00:00 2001 From: zayac Date: Sat, 6 Apr 2024 18:50:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=88=B1=E4=BD=93=E8=82=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entity/account.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/entity/account.py b/src/entity/account.py index ff970f2..3943a24 100644 --- a/src/entity/account.py +++ b/src/entity/account.py @@ -14,6 +14,7 @@ class AccountType(Enum): ky = 0 hth = 1 jy = 2 + aty = 3 #爱体育 @dataclass @@ -24,7 +25,7 @@ class Account(db.Base): username: Mapped[db.str_required_unique] = mapped_column(comment='账号') password: Mapped[db.str_required] = mapped_column(comment='密码') type: Mapped[AccountType] = mapped_column(Sql_Enum(AccountType), default=AccountType.ky, nullable=False, - comment='类型 ky hth jy') + comment='类型 ky hth jy aty') name: Mapped[str] = mapped_column(String(64), nullable=True, comment='别名') url: Mapped[str] = mapped_column(String(128), nullable=False, comment='url') x_api_token: Mapped[str] = mapped_column(String(64), nullable=True, comment='x-api-token') @@ -32,4 +33,4 @@ class Account(db.Base): user_id: Mapped[int] = mapped_column(ForeignKey('ky_user.id'), nullable=False, comment='关联的用户id') user: Mapped['user.User'] = relationship('user.User', back_populates='accounts') - status: Mapped[int] = mapped_column(Integer, nullable=True, comment='账号状态,默认0 禁用',default=0) + status: Mapped[int] = mapped_column(Integer, nullable=True, comment='账号状态,默认0 禁用', default=0)