新增爱体育
This commit is contained in:
parent
907692c5e8
commit
093e8cbb5e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user