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

[TASK-15] Implement Activities Table and API #35

Open
abedmohammed opened this issue Nov 12, 2024 · 2 comments
Open

[TASK-15] Implement Activities Table and API #35

abedmohammed opened this issue Nov 12, 2024 · 2 comments

Comments

@abedmohammed
Copy link
Collaborator

[TASK-15] Implement Activities Table and API

Goal:
Create the activities table and develop API endpoints for managing activity entries.

Requirements:

  1. Create Activities Table with Basic Structure:
    image
  • Ensure each activity entry is linked to a dailyRecordID to associate it with a specific day.
  • For now, use boolean columns to represent individual activities (e.g., "Exercise", "Reading", "Meditation").
  1. Activities API - Create Activity Entry:

    • Allow users to create an activity entry linked to a daily record for the current date.
    • Include a restriction to ensure activity entries are associated only with a valid dailyRecordID.
    • there can only be one activity entry per dailyrecord
  2. Activities API - Edit Activity Entry:

    • Allow users to edit an existing activity entry, updating activity statuses as needed.
  3. Activities API - Delete Activity Entry:

    • Implement functionality to delete an activity entry by id.

Expected Outcome:
An activities table with API endpoints for creating, editing, and deleting activity entries, ensuring they are linked to a daily record for the current date.

@ausbennett
Copy link
Collaborator

May I take this?

@abedmohammed
Copy link
Collaborator Author

Sorry i forgot to assign this to matthew, but i can also add more tickets to the board for backend stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants