数据库优化

This commit is contained in:
2025-07-01 00:16:07 +08:00
parent f6825b670f
commit 652a78cb05
9 changed files with 265 additions and 2 deletions

View File

@@ -34,6 +34,15 @@ class Report(BaseModel, table=True):
),
)
delete_at: Optional[datetime] = Field(
default=None,
sa_column=Column(
DateTime,
nullable=True,
comment="删除时间",
),
)
# 外键
share_id: int = Field(foreign_key="shares.id", index=True, description="被举报的分享ID")