MIF_E31221222/sigap-website/prisma/seeds
vergiLgood1 c7bdb24ceb feat: Add triggers and functions for user management and location handling
- Implemented user creation, update, and deletion triggers to manage officer and standard user data.
- Created functions to handle user type changes and conditional updates based on user metadata.
- Added a function to retrieve nearby units based on geographical coordinates.
- Established triggers to update distance to units upon location changes.
- Created spatial indexes for efficient querying of units and locations.
- Added a function to delete the current user from the auth.users table.
2025-05-18 13:52:26 +07:00
..
crime-category.ts add seeds supaabse 2025-05-14 06:54:34 +07:00
crime-incidents-cbt.ts feat: Add triggers and functions for user management and location handling 2025-05-18 13:52:26 +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 feat: Add triggers and functions for user management and location handling 2025-05-18 13:52:26 +07:00
units.ts fix: Update district coordinates and improve unit seeding logic 2025-05-14 08:15:27 +07:00