Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Tasks / Sessions as Subtype of Habit #22

Open
4 tasks
miczed opened this issue May 21, 2021 · 0 comments
Open
4 tasks

Add Tasks / Sessions as Subtype of Habit #22

miczed opened this issue May 21, 2021 · 0 comments
Labels
⭐️ Feature New feature or request

Comments

@miczed
Copy link
Contributor

miczed commented May 21, 2021

  • Create Single Table Inheritance (STI) with two types: Task and Session
  • Add type field to JSON: Session, Task
  • Distinguish both types in Form
  • Create TaskConfig and SessionConfig that inherit from HabitConfig using STI, SessionConfig has additional field duration

To discuss:

  • use STI for Occurrences as well to distinguish TaskOccurrences and SessionOccurrences
  • TaskOccurrences would have done_at or completed_at field
  • SessionOccurrences would have ended_at field
@miczed miczed added the ⭐️ Feature New feature or request label May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐️ Feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant