Skip to main content

Todo Schema

The Todo app stores its data in a single collection called todos. This schema is created using the Schema Canvas.

Database Selection

Choose one:
  • ✅ Platform Database (recommended)
  • MongoDB Database (requires MongoDB URL secret)

Collection: todos

Create a new collection named:

Fields

1️⃣ title


2️⃣ description


3️⃣ completed


4️⃣ createdAt


5️⃣ updatedAt


Why This Schema Works Well

  • Simple and clear
  • Indexed for common queries
  • Works for all CRUD operations
  • Easy to extend later (users, priority, due dates)

With the schema ready, you can now build Todo workflows (Create, Read, Update, Delete).