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

Tasks and sub tasks database structure #21

Closed
Tracked by #8
rafoolin opened this issue Aug 13, 2022 · 1 comment
Closed
Tracked by #8

Tasks and sub tasks database structure #21

rafoolin opened this issue Aug 13, 2022 · 1 comment
Assignees
Labels
back-end Server and back-end feature New feature or request

Comments

@rafoolin
Copy link
Owner

A Task can have several tasks or nothing(standalone one)
If a parent task is marked as done, all the children will be marked as done as well.

For example:
Task project has 3 other sub-tasks: write documentation, write code, write test.

🟩 Project
    🟩 write documentation.
    🟩 write code.
    🟩 write test.

We can have it like:
🟩 Project
    🟩 write documentation.
    ✅ write code.
    🟩 write test.

or
🟩 Project
    🟩 write documentation.
    ✅ write code.
    ✅ write test.

And
✅ Project
    ✅ write documentation.
    ✅ write code.
    ✅ write test.

Task in database:

type name
id uuid
user_id uuid
category_id uuid
parent_id uuid
title text
date_time timestamp
done_at timestamp
created_at timestamp
updated_at timestamp
completed boolean
note text
@rafoolin rafoolin added back-end Server and back-end feature New feature or request labels Aug 13, 2022
@rafoolin rafoolin self-assigned this Aug 13, 2022
@rafoolin rafoolin mentioned this issue Aug 13, 2022
3 tasks
@rafoolin rafoolin reopened this Aug 13, 2022
@rafoolin
Copy link
Owner Author

closed by 238d5b3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end Server and back-end feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant