Initial commit: funeral provider discovery pipeline
Python crawlers for VIC Register, Funerals Australia, NFDA n8n workflows for scheduled discovery and enrichment SQLite schema and seeded dev database (1,463 providers) End-to-end process documentation in n8n/PROCESS.md
This commit is contained in:
24
database/seed_verified.sql
Normal file
24
database/seed_verified.sql
Normal file
@@ -0,0 +1,24 @@
|
||||
-- Seed script: Mark existing brands as verified
|
||||
-- Run after importing existing CMS data into the new schema.
|
||||
--
|
||||
-- This updates all pre-existing brands (imported from brands-full.json)
|
||||
-- to verified=true, hidden=false, enrichment_status='complete'.
|
||||
|
||||
UPDATE funeral_brand
|
||||
SET verified = TRUE,
|
||||
hidden = FALSE,
|
||||
enrichment_status = 'complete',
|
||||
listing_tier = 'verified',
|
||||
updated_at = NOW()
|
||||
WHERE id IN (
|
||||
-- IDs from the existing 12 brands in brands-full.json
|
||||
-- These will be populated during the initial CMS data import.
|
||||
-- Update this list to match actual imported IDs.
|
||||
SELECT id FROM funeral_brand WHERE source_key IS NULL
|
||||
);
|
||||
|
||||
-- Alternatively, if importing with known codes:
|
||||
-- UPDATE funeral_brand SET verified = TRUE, hidden = FALSE, enrichment_status = 'complete'
|
||||
-- WHERE code IN ('hparsons', 'parsons-ladies', 'rankins', 'killick', 'botanical',
|
||||
-- 'easy', 'wollongong-city', 'kenneallys', 'lady-anne',
|
||||
-- 'mackay', 'mannings', 'guardian');
|
||||
Reference in New Issue
Block a user