You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[TASK-10] Implement Daily Records Table and API Middleware
Goal:
Create the daily_records table and implement a middleware to ensure daily records are created as needed.
Requirements:
Create Daily Records Table:
Daily Records API Middleware:
Implement middleware to check for an existing daily record for the current date.
Automatically create a new daily_record entry if it does not already exist when a user accesses an endpoint related to moods or attempts to create one.
middleware should run before any endpoint regarding journals, moods, or activities
can be put after authentication middleware
Expected Outcome:
A daily_records table with middleware that ensures a daily record is always present for the current date.
The text was updated successfully, but these errors were encountered:
[TASK-10] Implement Daily Records Table and API Middleware
Goal:
Create the
daily_records
table and implement a middleware to ensure daily records are created as needed.Requirements:
daily_record
entry if it does not already exist when a user accesses an endpoint related tomoods
or attempts to create one.Expected Outcome:
A
daily_records
table with middleware that ensures a daily record is always present for the current date.The text was updated successfully, but these errors were encountered: