- 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. |
||
|---|---|---|
| .. | ||
| crime-category.ts | ||
| crime-incidents-cbt.ts | ||
| crime-incidents.ts | ||
| crimes.ts | ||
| demographic.ts | ||
| geographic.ts | ||
| incident-logs.ts | ||
| officers.ts | ||
| patrol-units.ts | ||
| permission.ts | ||
| resource.ts | ||
| role.ts | ||
| units.ts | ||