Skip to main content

Overview

Categories help you organize transactions and understand your spending patterns. Each category has a type (income or expense) and optional visual styling.

Category Properties

Creating Categories

Using the Cache Manager

Direct Repository Access

Querying Categories

Get All Categories

Filter by Type

Find by ID

Common Category Examples

Expense Categories

  • 🍔 Food & Dining
  • 🚗 Transportation
  • 🏠 Housing
  • 💡 Utilities
  • 🎬 Entertainment
  • 🛒 Shopping
  • 🏥 Healthcare

Income Categories

  • 💼 Salary
  • 🎁 Gifts
  • 📈 Investments
  • 🏠 Rental Income
  • 💰 Other Income

Color Format

Colors are stored as 32-bit ARGB integers:

Updating Categories

Deleting Categories

When you delete a category, existing transactions will have their categoryId set to null (via ON DELETE SET NULL constraint).

Best Practices

  1. Keep it simple - Start with 5-10 categories
  2. Be consistent - Use the same categories month-to-month
  3. Use colors - Visual cues help identify categories quickly
  4. Review regularly - Merge or split categories as needed