Models & Storage layer for category feature (Issue #85):
- Add Category dataclass to core/models.py
- id (slug): lowercase alphabetic only
- name: display name
- created_at: Unix timestamp
- deleted_at: soft delete timestamp (None if active)
- Add category_ids field to Bounty dataclass
- list[str] for multiple categories per bounty
- Default empty list for backward compatibility
- Add categories field to RoomData dataclass
- list[Category] for room-level categories
- Default empty list
- Update JsonFileRoomStorage to serialize/deserialize:
- Category fields (id, name, created_at, deleted_at)
- Bounty.category_ids
- RoomData.categories
Backward compatible: existing data without categories works fine.
- Replace admin_user_ids (list[int]) with admin_usernames (list[str])
- Update all service methods to use username for permission checks
- Add delete button to bot responses for message cleanup
- Update tests to match new implementation
Note: Breaking change - existing data files need fresh start
Issue #41: Model updates for Phase 2 features
Bounty model:
- Add deleted_at: int | None - timestamp when deleted (soft-delete)
- Add created_by_username: str | None - username for display purposes
RoomData model:
- Add timezone: str | None - room's timezone (e.g., "Asia/Jakarta")
- Add admin_user_ids: list[int] - list of admin user IDs
Storage adapter updated to handle new fields in load/save operations.
Tests added for new fields.
- Bounty.created_by_user_id is now non-optional (always required)
- Removed is_group from RoomData (negative room_id is self-documenting)
- Added room_id to TrackedBounty to track which room bounty was tracked from
- Added clarifying docstrings explaining TrackingData vs TrackedBounty
- Updated tests to match new model structure
- Remove GroupBounty/PersonalBounty subclasses, use Bounty with optional created_by_user_id
- Combine UserData/GroupData into RoomData with room_id and is_group fields
- Add group_id field to TrackingData (supports negative Telegram group IDs)
- Add test_bounty_comparison_not_equal for verifying different bounties are not equal
- Update core/__init__.py exports