添加Github登录,优化数据库模型
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user