添加Github登录,优化数据库模型

This commit is contained in:
2025-09-01 00:21:06 +08:00
parent f3a5ae9c40
commit 2a173c0566
23 changed files with 321 additions and 264 deletions

View File

@@ -29,4 +29,11 @@ class Policy(BaseModel, table=True):
# 关系
files: List["File"] = Relationship(back_populates="policy")
folders: List["Folder"] = Relationship(back_populates="policy")
folders: List["Folder"] = Relationship(back_populates="policy")
@staticmethod
async def create(
policy: Optional["Policy"] = None,
**kwargs
):
pass