#pragma once

#include "todo.hpp"
#include "types.hpp"

// Data store operations for tasks
task_t *find_task(uint16 id);
task_t *add_task(uint8 user_id, const char *title, int64 due_date,
                 uint8 period = PERIOD_MORNING, uint8 recurrence = 0);
bool remove_task(uint16 id);
void remove_tasks_for_user(uint8 user_id);
void sort_tasks_by_due_date(task_t **arr, int count);
void seed_tasks();
