- 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. |
||
---|---|---|
.. | ||
20250421113117_remote_schema.sql | ||
20250421114454_add_prisma_user.sql | ||
20250421115005_remote_schema.sql | ||
20250421115206_grant_privileges_to_prisma.sql | ||
20250424033411_grant_deafult_previleges.sql | ||
20250424180834_grant_deafult_previleges_again.sql | ||
20250505150200_remote_schema.sql | ||
20250505150857_remote_schema.sql | ||
20250505161323_remote_schema.sql | ||
20250506125310_remote_schema.sql | ||
20250506125549_add_new_function.sql | ||
20250506132018_add_new_gis_function.sql | ||
20250506142627_drop_and_restore.sql | ||
20250506142701_remote_schema.sql | ||
20250506143002_drop_and_restore.sql | ||
20250506143054_remote_schema.sql | ||
20250510020227_add_model_location_logs.sql | ||
20250511100547_add_triger_and_function.sql | ||
20250515110003_add_new_auth_trigger.sql | ||
20250515110032_add_new_gis_trigger.sql |