nidus-sync/db/models
Eli Ribble 2538638c9d
Create generic backend process, fix background interdependencies
This refactor was born out of the inter-dependency cycles developing
between the "background" module and just about every other module which
was caused by the background module becoming a dependency of every
module that needed to background work and the fact that the background
module was also supposedly responsible for the logic for processing
those tasks.

Instead the "background" module is now very, very shallow and relies
entirely on the Postgres NOTIFY logic for triggering jobs. There's a new
table, `job` which holds just a type and single row ID.

All told, this means that jobs can be added to the queue as part of the
API-level or platform-level transaction, ensuring atomicity, and
processing coordination is handled by the platform module, which can
depend on anything.
2026-03-16 19:52:29 +00:00
..
address.bob.go Rework publicreport addressing 2026-03-09 18:02:22 +00:00
arcgis.account.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
arcgis.address_mapping.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
arcgis.layer.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
arcgis.layer_field.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
arcgis.oauth_token.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
arcgis.parcel_mapping.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
arcgis.service_feature.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
arcgis.service_map.bob.go Save tiles to the database to make empty tile load faster 2026-03-11 17:01:47 +00:00
arcgis.user_.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
arcgis.user_privilege.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
bob_loaders.bob.go Rework publicreport addressing 2026-03-09 18:02:22 +00:00
bob_where.bob.go Create generic backend process, fix background interdependencies 2026-03-16 19:52:29 +00:00
comms.email_contact.bob.go Rework publicreport addressing 2026-03-09 18:02:22 +00:00
comms.email_log.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
comms.email_template.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
comms.mailer.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
comms.phone.bob.go Rework publicreport addressing 2026-03-09 18:02:22 +00:00
comms.text_job.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
comms.text_log.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
compliance_report_request.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
compliance_report_request_mailer.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
district_subscription_email.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
district_subscription_phone.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
feature.bob.go Add new view for report counts and invalidated status 2026-03-12 15:27:36 +00:00
feature_pool.bob.go Rename address.geom to address.location 2026-03-06 19:46:41 +00:00
fieldseeker.containerrelate.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.fieldscoutinglog.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.habitatrelate.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.inspectionsample.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.inspectionsampledetail.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.linelocation.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.locationtracking.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.mosquitoinspection.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.pointlocation.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.polygonlocation.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.pool.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.pooldetail.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.proposedtreatmentarea.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.qamosquitoinspection.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.rodentlocation.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.samplecollection.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.samplelocation.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.servicerequest.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.speciesabundance.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.stormdrain.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.timecard.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.trapdata.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.traplocation.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.treatment.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.treatmentarea.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.zones.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker.zones2.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fieldseeker_sync.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fileupload.csv.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fileupload.error_csv.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fileupload.error_file.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fileupload.file.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
fileupload.pool.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
geography_columns.bob.go Add ability to make LLM agent forget the conversation history 2026-01-27 18:44:02 +00:00
geometry_columns.bob.go Add ability to make LLM agent forget the conversation history 2026-01-27 18:44:02 +00:00
goose_db_version.bob.go Add ability to make LLM agent forget the conversation history 2026-01-27 18:44:02 +00:00
h3_aggregation.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
job.bob.go Create generic backend process, fix background interdependencies 2026-03-16 19:52:29 +00:00
lead.bob.go Add new view for report counts and invalidated status 2026-03-12 15:27:36 +00:00
note_audio.bob.go Create generic backend process, fix background interdependencies 2026-03-16 19:52:29 +00:00
note_audio_breadcrumb.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
note_audio_data.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
note_image.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
note_image_breadcrumb.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
note_image_data.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
notification.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
organization.bob.go Create district catch-all, make organization on public reports not null 2026-03-14 15:53:16 +00:00
parcel.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
publicreport.image.bob.go Rework publicreport addressing 2026-03-09 18:02:22 +00:00
publicreport.image_exif.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
publicreport.notify_email_nuisance.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
publicreport.notify_email_water.bob.go Rework publicreport addressing 2026-03-09 18:02:22 +00:00
publicreport.notify_phone_nuisance.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
publicreport.notify_phone_water.bob.go Rework publicreport addressing 2026-03-09 18:02:22 +00:00
publicreport.nuisance.bob.go Create district catch-all, make organization on public reports not null 2026-03-14 15:53:16 +00:00
publicreport.nuisance_image.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
publicreport.organization_report_count.bob.go Add new view for report counts and invalidated status 2026-03-12 15:27:36 +00:00
publicreport.report_location.bob.go Initial creation of endpoint to send messages to public reporters 2026-03-16 00:20:41 +00:00
publicreport.subscribe_email.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
publicreport.subscribe_phone.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
publicreport.water.bob.go Create district catch-all, make organization on public reports not null 2026-03-14 15:53:16 +00:00
publicreport.water_image.bob.go Rework publicreport addressing 2026-03-09 18:02:22 +00:00
raster_columns.bob.go Add ability to make LLM agent forget the conversation history 2026-01-27 18:44:02 +00:00
raster_overviews.bob.go Add ability to make LLM agent forget the conversation history 2026-01-27 18:44:02 +00:00
resident.bob.go Add new view for report counts and invalidated status 2026-03-12 15:27:36 +00:00
review_task.bob.go Add resolution for tracking review_task discards 2026-03-11 22:49:55 +00:00
review_task_pool.bob.go Add resolution for tracking review_task discards 2026-03-11 22:49:55 +00:00
sessions.bob.go Add ability to make LLM agent forget the conversation history 2026-01-27 18:44:02 +00:00
signal.bob.go Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
site.bob.go Add new view for report counts and invalidated status 2026-03-12 15:27:36 +00:00
spatial_ref_sys.bob.go Add ability to make LLM agent forget the conversation history 2026-01-27 18:44:02 +00:00
tile.cached_image.bob.go Save tiles to the database to make empty tile load faster 2026-03-11 17:01:47 +00:00
user_.bob.go Add new view for report counts and invalidated status 2026-03-12 15:27:36 +00:00