MIF_E31221222/sigap-website/app/_utils
vergiLgood1 e422c59da9 Add crime data CSV files and update database schema
- Added crime summary by type CSV file with district-wise crime statistics.
- Added yearly crime data CSV file with detailed crime statistics per district and year.
- Modified the database schema to include a new column `source_type` in the `crimes` table and a new column `distance` in the `locations` table.
- Created migration to add `location_logs` table for tracking user location data with relevant fields and indices.
- Updated migration to drop the `distance` column and replace it with `distance_from_unit` in the `locations` table.
- Added additional migrations to drop and recreate the `location_logs` table, modify existing columns, and enforce new constraints in the `unit_statistics` and `units` tables.
2025-05-11 14:44:14 +07:00
..
const feat: enhance crime analytics and sidebar components with improved type definitions and additional data handling 2025-05-04 05:04:19 +07:00
cookies change project structure 2025-03-12 16:13:57 +07:00
map Add crime data CSV files and update database schema 2025-05-11 14:44:14 +07:00
mock feat: Add Panic Button Demo component and EWS Alert Layer for incident management 2025-05-07 10:23:54 +07:00
supabase add some stuff 2025-04-27 22:41:27 +07:00
types Add crime data CSV files and update database schema 2025-05-11 14:44:14 +07:00
authz.ts init model rbac 2025-04-07 20:50:57 +07:00
clustering.ts feat: add crime map components and functionality 2025-04-14 23:47:44 +07:00
colors.ts feat: Add timeline and units layers to the map component 2025-05-05 10:38:11 +07:00
common.ts Refactor seeding scripts to utilize generateIdWithDbCounter for unique ID generation across crime categories, incidents, and units. Implement a new utility function for generating distributed points within district areas to enhance incident location variability. Comment out unnecessary type drops and creations in SQL migration files for clarity. Add migration scripts to drop and re-add the phone field in the units table, ensuring data integrity during schema updates. 2025-05-06 01:21:04 +07:00
crime-stats.ts feat: add crime and district popups with detailed information and filtering capabilities 2025-05-02 22:20:22 +07:00
map.ts Refactor database privileges and schema management 2025-05-05 23:39:01 +07:00
time.ts feat: Add timeline and units layers to the map component 2025-05-05 10:38:11 +07:00
validation.ts init model rbac 2025-04-07 20:50:57 +07:00