From 937bbf8515b582b2fcd0d108ce3ce21fe4e32f5f Mon Sep 17 00:00:00 2001 From: shockrah Date: Thu, 7 May 2026 20:34:13 -0700 Subject: [PATCH] Coalescing things into one init script to keep thigns lean for now --- collector/db/items.sql | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/collector/db/items.sql b/collector/db/items.sql index 70867a2..e69de29 100644 --- a/collector/db/items.sql +++ b/collector/db/items.sql @@ -1,23 +0,0 @@ --- Modeling the products -CREATE TABLE products ( - -- Internal product ID - id UUID PRIMARY KEY DEFAULT gen_random_uuid(), - - -- Store-specific Identifiers - business_id UUID REFERENCES businesses (id) NOT NULL, - - -- Product Details - product_name VARCHAR(255) NOT NULL, - product_type VARCHAR(100), -- e.g., 'service', 'goods' - - -- Pricing (Numeric is preferred over Float for money) - -- Also tracking in USD at the time - price NUMERIC(12, 2) NOT NULL, - currency VARCHAR(100) NOT NULL, - - -- Also tracking the price per unit - unit_type VARCHAR(100) NOT NULL, -- e.g. 'item', 'weight', 'hour', etc. - - -- Tracking time that we checked - track_time TIMESTAMPTZ DEFAULT current_timestamp -);