MIF_E31221222/sigap-website/prisma/seeds
vergiLgood1 4b0bae1bcd feat: Implement migration and seeding for officers and patrol units
- Added migration to change primary key type for patrol_units and update foreign key constraints in officers table.
- Created seeder for officers, generating random data and ensuring each officer is linked to a patrol unit.
- Developed seeder for patrol units, including logic for generating patrol types, statuses, and locations based on police units.
- Enhanced Supabase triggers for user creation, updates, and deletions to handle officer-specific logic and maintain data integrity.
- Introduced GIS functions and triggers to calculate distances between locations and units, optimizing spatial queries.
2025-05-16 00:50:30 +07:00
..
crime-category.ts add seeds supaabse 2025-05-14 06:54:34 +07:00
crime-incidents-cbt.ts feat: Implement migration and seeding for officers and patrol units 2025-05-16 00:50:30 +07:00
crime-incidents.ts feat: Implement migration and seeding for officers and patrol units 2025-05-16 00:50:30 +07:00
crimes.ts feat: Implement migration and seeding for officers and patrol units 2025-05-16 00:50:30 +07:00
demographic.ts feat: Add crime data JSON and district center data for crime incidents 2025-05-12 08:17:26 +07:00
geographic.ts add seeds supaabse 2025-05-14 06:54:34 +07:00
incident-logs.ts feat: Implement migration and seeding for officers and patrol units 2025-05-16 00:50:30 +07:00
officers.ts feat: Implement migration and seeding for officers and patrol units 2025-05-16 00:50:30 +07:00
patrol-units.ts feat: Implement migration and seeding for officers and patrol units 2025-05-16 00:50:30 +07:00
permission.ts feat: Implement migration and seeding for officers and patrol units 2025-05-16 00:50:30 +07:00
resource.ts feat: add initial data seeding for resources, roles, demographics, crime incidents, and geographic data 2025-04-25 02:04:04 +07:00
role.ts add some stuff 2025-04-27 22:41:27 +07:00
units.ts fix: Update district coordinates and improve unit seeding logic 2025-05-14 08:15:27 +07:00