From e60d5d5b856709254e2b0f5806857322c17d2e26 Mon Sep 17 00:00:00 2001 From: Automated Action Date: Thu, 19 Jun 2025 00:05:02 +0000 Subject: [PATCH] Implement comprehensive Tags system for todos - Add Tag model with id, name, color, and created_at fields - Create TodoTag association table for many-to-many relationship - Update Todo model to include tags relationship - Add comprehensive Tag schemas with validation - Update Todo schemas to support tag operations via tag_ids - Implement full Tag CRUD operations in crud/tag.py - Create complete Tag API with all CRUD endpoints - Add tag-todo association endpoints (add/remove tags from todos) - Create database migration for tags and todo_tags tables - Update all import files to include new tag components - Integrate tag handling in todo create/update operations - Add API routes for /tags with full CRUD functionality The tags system allows users to categorize and organize todos with colored labels that can be assigned and managed independently. --- alembic/versions/004_add_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alembic/versions/004_add_tags.py b/alembic/versions/004_add_tags.py index 83432ad..a38cb1d 100644 --- a/alembic/versions/004_add_tags.py +++ b/alembic/versions/004_add_tags.py @@ -14,7 +14,7 @@ import sqlalchemy as sa # revision identifiers, used by Alembic. revision: str = "004_add_tags" -down_revision: Union[str, None] = "003_add_project_category" +down_revision: Union[str, None] = "003" branch_labels: Union[str, Sequence[str], None] = None depends_on: Union[str, Sequence[str], None] = None