enrich user-project interaction statistics

This commit is contained in:
2026-05-19 00:05:56 +08:00
parent 0377d5071f
commit 78f15c80a1
4 changed files with 42 additions and 11 deletions
+5 -5
View File
@@ -69,10 +69,10 @@ class ProjectShare(Base, AutoID):
share_target = Column(String, default="internal", nullable=False)
# 如果是转发到特定工作区,可以记录目标工作区 ID
target_workspace_id = Column(
String(Workspace.id_length()),
ForeignKey("workspaces.id", ondelete="SET NULL"),
nullable=True
)
# target_workspace_id = Column(
# String(Workspace.id_length()),
# ForeignKey("workspaces.id", ondelete="SET NULL"),
# nullable=True
# )
created_at = Column(DateTime(timezone=True), server_default=func.now())