添加授权列表
This commit is contained in:
@@ -10,12 +10,12 @@ class UserOAuthAccount(Base, TimestampMixin, SoftDeleteMixin):
|
||||
id: Mapped[str] = mapped_column(
|
||||
String(32), primary_key=True, comment="主键"
|
||||
)
|
||||
account_id: Mapped[str] = mapped_column(
|
||||
oauth_id: Mapped[str] = mapped_column(
|
||||
String(64),
|
||||
nullable=False, index=True, comment="授权账户id(user_oauth表中同一个)"
|
||||
nullable=False, index=True, comment="授权表中的id"
|
||||
)
|
||||
advertiser_id: Mapped[str | None] = mapped_column(
|
||||
String(64), nullable=True, index=True, comment="广告账户id"
|
||||
String(64), nullable=True, index=True, comment="广告主账户id"
|
||||
)
|
||||
advertiser_name: Mapped[str | None] = mapped_column(
|
||||
String(128), nullable=True, comment="广告账户名"
|
||||
|
||||
@@ -19,7 +19,7 @@ class UserOAuthApp(Base, TimestampMixin, SoftDeleteMixin):
|
||||
status: Mapped[int] = mapped_column(
|
||||
BigInteger, nullable=False, default=1, comment="状态,1=正常,2=禁用"
|
||||
)
|
||||
count: Mapped[int] = mapped_column(
|
||||
max_count: Mapped[int] = mapped_column(
|
||||
BigInteger, nullable=False, default=100, comment="应用最大可以授权多少个用户"
|
||||
)
|
||||
auth_url: Mapped[str] = mapped_column(
|
||||
|
||||
Reference in New Issue
Block a user