add abandoned status to distinguish given-up habits from completed ones

Completed and abandoned habits were both lumped under a single terminal
state, making it impossible to tell "finished successfully" apart from
"gave up" when reviewing habit history.
This commit is contained in:
2026-07-17 20:19:35 +09:00
parent d0dd530e26
commit 55918d56d1
11 changed files with 167 additions and 3 deletions
+1
View File
@@ -56,6 +56,7 @@ class HabitOut(BaseModel):
reminder_time: time | None
created_at: datetime
completed_at: datetime | None
abandoned_at: datetime | None
class HabitReorderRequest(BaseModel):