Claude opus authored everything to make the user and task work. First iteration

This commit is contained in:
2026-03-07 21:39:10 -05:00
parent 8ab1efcca7
commit 2bee7dce43
25 changed files with 2003 additions and 164 deletions

20
Provider/main/todo.hpp Normal file
View File

@@ -0,0 +1,20 @@
#pragma once
#include <cstring>
#include "types.hpp"
#include "user.hpp"
struct task_t
{
uint16 id; // Auto-assigned (165535, 0 = empty slot)
uint8 user_id; // Owner (matches user_t.id)
char title[64]; // Task description
int64 due_date; // Unix timestamp (seconds)
bool completed; // Done flag
bool active; // Slot in use
};
constexpr int MAX_TASKS = 32;
internal task_t g_Tasks[MAX_TASKS] = {};
internal uint16 g_NextTaskId = 1;