From c230d4259f467a1e924c5d184e18d692896e00bf Mon Sep 17 00:00:00 2001 From: shockrah Date: Thu, 7 May 2026 20:41:43 -0700 Subject: [PATCH] more slq fixes --- collector/db/init.sql | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/collector/db/init.sql b/collector/db/init.sql index b215564..e5d450b 100644 --- a/collector/db/init.sql +++ b/collector/db/init.sql @@ -14,7 +14,7 @@ CREATE TABLE products ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), -- Store-specific Identifiers - business_id UUID REFERENCES businesses (id) NOT NULL, + business_id UUID REFERENCES businesses (store_id) NOT NULL, -- Product Details product_name VARCHAR(255) NOT NULL, @@ -31,7 +31,3 @@ CREATE TABLE products ( -- Tracking time that we checked track_time TIMESTAMPTZ DEFAULT current_timestamp ); - - -\i stores.sql; -\i products.sql;