more slq fixes
This commit is contained in:
1 parent
dd6ec9c01b
commit
c230d4259f
1 file changed
+1
-5
@@ -14,7 +14,7 @@ CREATE TABLE products (
|
|||||||
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||||
|
|
||||||
-- Store-specific Identifiers
|
-- Store-specific Identifiers
|
||||||
business_id UUID REFERENCES businesses (id) NOT NULL,
|
business_id UUID REFERENCES businesses (store_id) NOT NULL,
|
||||||
|
|
||||||
-- Product Details
|
-- Product Details
|
||||||
product_name VARCHAR(255) NOT NULL,
|
product_name VARCHAR(255) NOT NULL,
|
||||||
@@ -31,7 +31,3 @@ CREATE TABLE products (
|
|||||||
-- Tracking time that we checked
|
-- Tracking time that we checked
|
||||||
track_time TIMESTAMPTZ DEFAULT current_timestamp
|
track_time TIMESTAMPTZ DEFAULT current_timestamp
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
\i stores.sql;
|
|
||||||
\i products.sql;
|
|
||||||
Reference in new issue
Block a user