We have implemented a web app to store a to-do list using a realtime database. You can visit it by clicking here: todo.zestydb.com.
CREATE TABLE categories (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT UNIQUE NOT NULL
);
CREATE TABLE tasks (
id INTEGER PRIMARY KEY AUTOINCREMENT,
description TEXT NOT NULL,
due_date DATE NOT NULL,
category_id INTEGER,
priority_level INTEGER CHECK(priority_level BETWEEN 1 AND 4),
status TEXT DEFAULT 'active' CHECK(status IN ('active', 'completed')),
FOREIGN KEY (category_id) REFERENCES categories(id)
);
You can view the project description here.
You can view the Entity-Relationship Diagram below.
You can view how each feature of the to-do list querys using SQL here.
You can watch a video on how the to-do list works here.