3 Commits

Author SHA1 Message Date
albertfj114
033f805965 fix: clean up church-matcher types and add HK OSM bounding box
- Remove discovermassId/buscarmisasNetworkId from findDuplicateChurch match
  passes (importers now do their own pre-check dedup); restore as optional
  fields on ExistingChurch to keep type/runtime in sync
- Add HK bounding box to COUNTRY_BOUNDING_BOXES; fix silent 0-result
  fallback when country query returns empty from mirror server
- discovermass importer: add --limit flag and skip-already-imported
  pre-check using importedSlugs set
- Import scripts: remove discovermassId from ExistingChurch select/stubs
  (field not needed in shared matcher context)
- Schema: reorder discovermassId/kerknetId/gottesdienstzeitenId fields

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 22:20:45 -04:00
albertfj114
6ca891f517 chore: sync schema — add kerknetId, gottesdienstzeitenId, discovermassId, buscarmisasNetworkId 2026-03-19 19:02:09 -04:00
albertfj114
2706708c51 feat: add discovermassId field to Church schema
Add discovermassId as a unique, optional field to the Church model
to support importing churches from discovermass.com (20,284 US churches).

The field follows the same pattern as other source ID fields:
- String type, optional, unique
- Maps to 'discovermass_id' database column
- Includes corresponding database index

Generated Prisma client successfully with 'npx prisma generate'
2026-03-11 06:41:58 -04:00