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;