CREATE TABLE IF NOT EXISTS TodoEntity (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    title TEXT NOT NULL,
    completed INTEGER AS kotlin.Boolean NOT NULL DEFAULT 0,
    category TEXT NOT NULL DEFAULT 'Personal',
    priority TEXT NOT NULL DEFAULT 'medium',
    created_at INTEGER NOT NULL
);

selectAll:
SELECT * FROM TodoEntity ORDER BY created_at DESC;

insert:
INSERT INTO TodoEntity(title, completed, category, priority, created_at)
VALUES (?, ?, ?, ?, ?);

update:
UPDATE TodoEntity SET title = ?, category = ?, priority = ? WHERE id = ?;

toggleCompleted:
UPDATE TodoEntity SET completed = ? WHERE id = ?;

delete:
DELETE FROM TodoEntity WHERE id = ?;
