-- Seed data for the Inventory Tracker schema, from section 14 of the blueprint. Load after inventory-tracker.sql. -- Brightside Cleaning Co. The spec's clock: today is Thursday 2026-10-15. Company time zone UTC. -- The movement history is not loaded: see the seedNote on the schema page. INSERT INTO locations (id, name, code, active) VALUES ('store', 'Store room', 'STORE', TRUE), ('van1', 'Van 1', 'VAN1', TRUE), ('van2', 'Van 2', 'VAN2', TRUE); INSERT INTO people (id, name, email, role, default_location_id, active) VALUES ('dana', 'Dana Reyes', 'dana@brightside.example', 'admin', NULL, TRUE), ('marco', 'Marco Silva', 'marco@brightside.example', 'admin', NULL, TRUE), ('priya', 'Priya Shah', 'priya@brightside.example', 'staff', 'van1', TRUE), ('tom', 'Tom Bell', 'tom@brightside.example', 'staff', 'van2', TRUE); INSERT INTO suppliers (id, name, email, lead_time_days) VALUES ('proclean', 'ProClean Wholesale', 'orders@proclean.example', 5), ('metro', 'Metro Paper Co.', 'sales@metropaper.example', 7); -- Nitrile gloves are low (7 on hand, reorder at 10) and their low stock email already went out, so low_alerted is TRUE. INSERT INTO items (id, sku, name, unit, barcode, photo, unit_cost_cents, reorder_point, reorder_qty, supplier_id, low_alerted, archived) VALUES ('gc-32', 'GC-32', 'Glass cleaner, 32 oz', 'bottle', '012345678905', NULL, 425, 12, 24, 'proclean', FALSE, FALSE), ('gl-m', 'GL-M', 'Nitrile gloves, medium, box of 100', 'box', NULL, NULL, 980, 10, 20, 'proclean', TRUE, FALSE), ('ds-1g', 'DS-1G', 'Disinfectant concentrate, 1 gal', 'jug', NULL, NULL, 2275, 4, 8, 'proclean', FALSE, FALSE), ('mf-24', 'MF-24', 'Microfiber cloths, pack of 24', 'pack', NULL, NULL, 1800, 6, 12, 'proclean', FALSE, FALSE), ('mh-01', 'MH-01', 'Mop head', 'each', NULL, NULL, 750, 10, 20, 'proclean', FALSE, FALSE), ('vb-10', 'VB-10', 'Vacuum bags, pack of 10', 'pack', NULL, NULL, 1420, 4, 8, 'proclean', FALSE, FALSE), ('tb-33', 'TB-33', 'Trash bags, 33 gal, case of 250', 'case', NULL, NULL, 3850, 3, 6, 'metro', FALSE, FALSE), ('pt-12', 'PT-12', 'Paper towels, case of 12 rolls', 'case', NULL, NULL, 3100, 3, 6, 'metro', FALSE, FALSE); -- PO-0006: created and sent by Dana 16 days ago, received in full 9 days ago. Its expected date is the default (sent date plus Metro's 7-day lead time). -- PO-0007: created and sent by Marco 2 days ago, expected in 5 days (changed by hand when sent), nothing received. -- The spec gives days, not times of day: sent_at is set to 00:00 UTC on that day. INSERT INTO purchase_orders (id, number, supplier_id, status, expected_date, sent_at, closed_short, notes, created_by) VALUES ('po-0006', 'PO-0006', 'metro', 'received', '2026-10-06', '2026-09-29 00:00:00', FALSE, NULL, 'dana'), ('po-0007', 'PO-0007', 'proclean', 'sent', '2026-10-20', '2026-10-13 00:00:00', FALSE, NULL, 'marco'); INSERT INTO po_lines (id, po_id, item_id, qty_ordered, qty_received, unit_cost_cents) VALUES ('po-0006-tb', 'po-0006', 'tb-33', 6, 6, 3850), ('po-0006-pt', 'po-0006', 'pt-12', 6, 6, 3100), ('po-0007-gl', 'po-0007', 'gl-m', 20, 0, 980), ('po-0007-vb', 'po-0007', 'vb-10', 8, 0, 1420);