Deleting user now works, and forces you to allocate tasks from each user to another user before deleting them

This commit is contained in:
NPS Agent
2026-05-13 10:40:57 +09:30
parent ee5f55bc8e
commit fd84caef63
7 changed files with 24 additions and 5 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ class TaskNote(Base):
id = Column(Integer, primary_key=True, index=True)
task_id = Column(String, ForeignKey("tasks.id", ondelete="CASCADE"), nullable=False)
author_id = Column(String, ForeignKey("users.id"), nullable=False)
author_id = Column(String, ForeignKey("users.id"), nullable=True)
body = Column(String, nullable=False)
created_at = Column(DateTime(timezone=True), server_default=func.now())