From 82a365f357acdd69d82c92cedc8925da53240961 Mon Sep 17 00:00:00 2001 From: Paul Bailey Date: Sun, 16 Nov 2025 18:21:09 +0000 Subject: [PATCH] Update tasks to reflect MySQL instead of PostgreSQL/PostGIS - Change task 22 from PostgreSQL+PostGIS to MySQL with spatial support - Update references to PostGIS spatial queries to MySQL spatial functions - Remove materialized view reference (MySQL specific) - Update test task to reference MySQL instead of PostGIS --- .kiro/specs/beach-litter-mapping/tasks.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.kiro/specs/beach-litter-mapping/tasks.md b/.kiro/specs/beach-litter-mapping/tasks.md index 1286931..b02551d 100644 --- a/.kiro/specs/beach-litter-mapping/tasks.md +++ b/.kiro/specs/beach-litter-mapping/tasks.md @@ -173,7 +173,7 @@ ## Backend API Development -- [ ] 21. Set up backend project structure +- [x] 21. Set up backend project structure - Initialize Node.js project with Express - Configure TypeScript for backend - Set up folder structure: routes, controllers, services, middleware, utils @@ -181,12 +181,12 @@ - Create environment configuration - _Requirements: All backend requirements_ -- [ ] 22. Configure database with Prisma and PostGIS - - Set up PostgreSQL with PostGIS extension +- [ ] 22. Configure database with Prisma and MySQL spatial support + - Set up MySQL 8.0+ with spatial data support - Create Prisma schema with all models (User, Report, Event, etc.) - - Configure PostGIS geography types for location fields + - Configure MySQL POINT spatial types for location fields - Create database migrations - - Set up database indexes for performance + - Set up database indexes including spatial indexes for performance - _Requirements: 1.1, 2.1, 3.2, 4.1_ - [ ] 23. Implement authentication system @@ -203,7 +203,7 @@ - Build GET /api/reports/:id for single report retrieval - Create PATCH /api/reports/:id for updates - Implement DELETE /api/reports/:id with authorization - - Add spatial queries using PostGIS for location-based filtering + - Add spatial queries using MySQL spatial functions for location-based filtering - _Requirements: 1.1-1.8, 2.1, 2.4_ - [ ] 25. Implement file upload and EXIF processing @@ -232,9 +232,9 @@ - [ ] 28. Build hotspot calculation system - Create scheduled job with node-cron for hotspot calculations - - Implement PostGIS spatial queries to identify clusters + - Implement MySQL spatial queries to identify clusters - Calculate severity scores based on report count and frequency - - Store hotspot data in database or materialized view + - Store hotspot data in database - Create GET /api/analytics/hotspots endpoint - _Requirements: 3.2, 3.3, 3.4_ @@ -310,7 +310,7 @@ - Create API endpoint tests with Supertest - Test authentication flows - Test file upload pipeline - - Test spatial queries with PostGIS + - Test spatial queries with MySQL - Test external API integration with mocks - _Requirements: All requirements_