Skip to content

Commit 4a28919

Browse files
Copilotasperpharma
andcommitted
feat: add DEFAULT gen_random_uuid() and DEFAULT NOW() to enrichment_pipeline_runs
Co-authored-by: asperpharma <252395498+asperpharma@users.noreply.github.com>
1 parent 65473d6 commit 4a28919

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

supabase/migrations/20260303100000_digital_tray_products_enrichment_columns.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ ALTER TABLE public.digital_tray_products
1515

1616
-- Pipeline run audit log
1717
CREATE TABLE IF NOT EXISTS public.enrichment_pipeline_runs (
18-
run_id UUID PRIMARY KEY,
19-
started_at TIMESTAMPTZ NOT NULL,
18+
run_id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
19+
started_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
2020
completed_at TIMESTAMPTZ,
2121
products_scanned INTEGER DEFAULT 0,
2222
products_enriched INTEGER DEFAULT 0,

0 commit comments

Comments
 (0)