Skip to content

Add stored household CRUD support #74

@anth-volk

Description

@anth-volk

Summary

Add the ability to store and retrieve household definitions that can be reused across calculations and impact analyses.

Scope

Models

  • Household model with:
    • tax_benefit_model_name (policyengine_uk or policyengine_us)
    • year
    • label (optional)
    • household_data JSONB containing people and entity groups

Endpoints

  • POST /households - Create a stored household
  • GET /households - List households with optional filtering
  • GET /households/{id} - Get a household by ID
  • DELETE /households/{id} - Delete a household

Database

  • Migration: 20260203000000_create_households.sql

Acceptance Criteria

  • Household model created with all fields
  • CRUD endpoints working
  • Tests passing
  • Migration applied successfully

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions