Add regional task templates API with climate zone lookup
Adds a new endpoint GET /api/tasks/templates/by-region/?zip= that resolves ZIP codes to IECC climate regions and returns relevant home maintenance task templates. Includes climate region model, region lookup service with tests, seed data for all 8 climate zones with 50+ templates, and OpenAPI spec. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -131,7 +131,9 @@ func Migrate() error {
|
||||
&models.TaskPriority{},
|
||||
&models.TaskFrequency{},
|
||||
&models.ContractorSpecialty{},
|
||||
&models.TaskTemplate{}, // Task templates reference category and frequency
|
||||
&models.TaskTemplate{}, // Task templates reference category and frequency
|
||||
&models.ClimateRegion{}, // IECC climate regions for regional templates
|
||||
&models.ZipClimateRegion{}, // ZIP to climate region lookup
|
||||
|
||||
// User and auth tables
|
||||
&models.User{},
|
||||
|
||||
Reference in New Issue
Block a user