mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add comprehensive label system with entities, migrations and denormalized label_names column: **Database Changes:** - Migration 0191: Fix labels.updated_at default to NOW() - Add Label and EntityLabel entities for label management - Add denormalized label_names array column to library_item for efficient filtering **Entity Updates:** - LibraryItemEntity: Add label_names column (PostgreSQL array type) - Label entity: User labels with name, color, description - EntityLabel entity: Junction table for library_item ↔ label relationship **Architecture:** - Dual-column approach: junction table for relationships + denormalized array for fast filtering - PostgreSQL array overlap operator (&&) enables efficient label-based queries - Automatic sync of label_names when labels are attached/detached Implements ARC-008 Labels System (backend foundation) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| dto | ||
| entities | ||
| label.module.ts | ||
| label.resolver.ts | ||
| label.service.ts | ||