Skip to content

Commit 09fe1b5

Browse files
authored
Merge pull request #79 from asperpharma/copilot/sub-pr-75
fix: use enum types for skin_concerns and skin_types columns in migration
2 parents d23bbdc + 86a3531 commit 09fe1b5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

supabase/migrations/20260303000000_digital_tray_products.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ CREATE TABLE IF NOT EXISTS public.digital_tray_products (
2626
title TEXT NOT NULL,
2727

2828
-- AI-enriched fields
29-
skin_concerns TEXT[] NOT NULL DEFAULT '{}',
30-
skin_types TEXT[] NOT NULL DEFAULT '{}',
29+
skin_concerns public.dtp_skin_concern[] NOT NULL DEFAULT '{}',
30+
skin_types public.dtp_skin_type[] NOT NULL DEFAULT '{}',
3131
key_ingredients TEXT[] NOT NULL DEFAULT '{}',
3232
clinical_justification TEXT,
3333
ai_confidence_score DECIMAL(3,2) CHECK (ai_confidence_score >= 0 AND ai_confidence_score <= 1),

0 commit comments

Comments
 (0)