Skip to content

[Auto] Design and implement Todo data model with SQLite schema#18

Draft
landoyjx wants to merge 1 commit intomainfrom
auto/2-design-and-implement-todo-data-model-with-sqlite-schema-121
Draft

[Auto] Design and implement Todo data model with SQLite schema#18
landoyjx wants to merge 1 commit intomainfrom
auto/2-design-and-implement-todo-data-model-with-sqlite-schema-121

Conversation

@landoyjx
Copy link
Copy Markdown
Owner

Create the Todo data model and corresponding SQLite schema. Fields: id (string/UUID primary key), title (string, non-empty), completed (boolean, default false), createdAt (datetime), updatedAt (datetime). Set up the database connection and a migration/script that creates the todos table on startup.

Acceptance Criteria:

  • SQLite table todos exists with correct columns and types
  • id is generated automatically on insert
  • createdAt and updatedAt are populated automatically

Test Cases:

  • Unit: Insert a valid Todo and verify all fields are persisted correctly
  • Unit: Verify default value of completed is false when omitted
  • Edge: Attempting to insert a Todo with a null title raises a validation/database error

View issue: #2


Created by bass auto-programming

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant