MIF_E31221222/sigap-website/supabase/migrations
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
..
20250518052815_remote_schema.sql feat: Add triggers and functions for user management and location handling 2025-05-18 13:52:26 +07:00
20250518053201_add_new_auth_trigger.sql feat: Add triggers and functions for user management and location handling 2025-05-18 13:52:26 +07:00
20250518053214_add_new_function.sql feat: Add triggers and functions for user management and location handling 2025-05-18 13:52:26 +07:00