-- Seed data for the Expense Reports schema, from section 14 of the blueprint. Load after expense-reports.sql. -- The seed day in the spec is Tue 13 Oct 2026 (T) and its dates are relative to it; this file uses the example dates. -- The spec gives dates without times, so timestamps are 12:00 New York time (16:00 UTC) on the date given. INSERT INTO people (id, name, email, manager_id, is_finance, active) VALUES ('p-dana', 'Dana Ruiz', 'dana@fernway.com', NULL, TRUE, TRUE), ('p-ana', 'Ana Lima', 'ana@fernway.com', 'p-dana', TRUE, TRUE), ('p-sam', 'Sam Okafor', 'sam@fernway.com', 'p-dana', FALSE, TRUE), ('p-maya', 'Maya Chen', 'maya@fernway.com', 'p-dana', FALSE, TRUE), ('p-lee', 'Lee Park', 'lee@fernway.com', 'p-sam', FALSE, TRUE), ('p-jo', 'Jo Park', 'jo@fernway.com', 'p-maya', FALSE, TRUE); INSERT INTO settings (id, company_name, time_zone, receipt_required_cents, mileage_rate_cents_per_mile, max_age_days, reminder_days) VALUES (1, 'Fernway', 'America/New_York', 7500, 70, 90, 3); INSERT INTO categories (id, name, limit_cents, requires_receipt, is_mileage, active) VALUES ('cat-travel', 'Travel', NULL, TRUE, FALSE, TRUE), ('cat-meals', 'Meals', 7500, TRUE, FALSE, TRUE), ('cat-lodging', 'Lodging', 30000, TRUE, FALSE, TRUE), ('cat-software', 'Software', 20000, TRUE, FALSE, TRUE), ('cat-office', 'Office supplies', 15000, TRUE, FALSE, TRUE), ('cat-other', 'Other', NULL, TRUE, FALSE, TRUE), ('cat-mileage', 'Mileage', NULL, FALSE, TRUE, TRUE); INSERT INTO reports (id, number, title, owner_id, status, approver_id, submitted_at, approved_at, reimbursed_at, payment_reference, paid_on, version) VALUES ('rep-101', 101, 'Boston client visit', 'p-lee', 'draft', NULL, NULL, NULL, NULL, NULL, NULL, 1), ('rep-102', 102, 'October software', 'p-jo', 'submitted', 'p-maya', '2026-10-09 16:00:00', NULL, NULL, NULL, NULL, 1), ('rep-103', 103, 'Team offsite supplies', 'p-sam', 'approved', 'p-dana', '2026-10-11 16:00:00', '2026-10-12 16:00:00', NULL, NULL, NULL, 1), ('rep-104', 104, 'Design conference', 'p-maya', 'reimbursed', 'p-dana', '2026-09-14 16:00:00', '2026-09-15 16:00:00', '2026-09-30 16:00:00', 'ACH-0930', '2026-09-30', 1); -- Receipts are placeholder file references, as section 14 asks. created_at is the expense date (not given by the spec). INSERT INTO expenses (id, report_id, category_id, date, merchant, amount_cents, miles_tenths, rate_cents_per_mile, description, explanation, receipt_file, created_at) VALUES ('exp-1', 'rep-101', 'cat-travel', '2026-10-08', 'Taxi to Acme', 4620, NULL, NULL, NULL, NULL, NULL, '2026-10-08 16:00:00'), ('exp-2', 'rep-101', 'cat-meals', '2026-10-08', 'Dinner with Acme', 11240, NULL, NULL, NULL, NULL, 'receipts/placeholder-dinner-with-acme.png', '2026-10-08 16:00:00'), ('exp-3', 'rep-101', 'cat-lodging', '2026-10-08', 'Hotel, 1 night', 28900, NULL, NULL, NULL, NULL, NULL, '2026-10-08 16:00:00'), ('exp-4', 'rep-101', 'cat-mileage', '2026-10-09', 'Office to Acme, return', 2695, 385, 70, NULL, NULL, NULL, '2026-10-09 16:00:00'), ('exp-5', 'rep-102', 'cat-software', '2026-10-02', 'Figma plugin', 2400, NULL, NULL, NULL, NULL, NULL, '2026-10-02 16:00:00'), ('exp-6', 'rep-102', 'cat-software', '2026-10-05', 'Stock photos', 18000, NULL, NULL, NULL, NULL, 'receipts/placeholder-stock-photos.png', '2026-10-05 16:00:00'), ('exp-7', 'rep-103', 'cat-office', '2026-10-06', 'Notebooks and markers', 13280, NULL, NULL, NULL, NULL, 'receipts/placeholder-notebooks-and-markers.png', '2026-10-06 16:00:00'), ('exp-8', 'rep-104', 'cat-other', '2026-09-10', 'Conference ticket', 89000, NULL, NULL, NULL, NULL, 'receipts/placeholder-conference-ticket.png', '2026-09-10 16:00:00'), ('exp-9', 'rep-104', 'cat-lodging', '2026-09-11', 'Hotel, 2 nights', 35000, NULL, NULL, NULL, 'Two nights in one charge, $175 a night', 'receipts/placeholder-hotel-2-nights.png', '2026-09-11 16:00:00');