- 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. |
||
|---|---|---|
| .. | ||
| crimes | ||
| summary | ||
| units | ||
| crime-category.ts | ||
| district-center.ts | ||
| district-coordinates.ts | ||
| languages.ts | ||
| nav.ts | ||
| resources.ts | ||
| roles.ts | ||
| sample-data.json | ||
| timezones.ts | ||
| users.ts | ||