-- Seed data for the Project Status Board schema, from section 15 of the blueprint. Load after project-status-board.sql. -- The spec dates the seed relative to today; its worked examples use today = Tue Oct 13, 2026, so this file fixes -- T = 2026-10-13 and W0 = 2026-10-12 (W-1 = Oct 5, W-2 = Sep 28, W-3 = Sep 21), and takes the moment of seeding as -- Tue Oct 13, 2026 10:00 New York time (14:00 UTC). Team times are EDT, UTC-4. The ids are readable slugs; the spec gives none. INSERT INTO settings (id, team_name, time_zone, update_weekday, reminder_time, report_time, report_recipients, last_reminder_week, last_report_week) VALUES (1, 'Fernway', 'America/New_York', 1, '09:00', '15:00', 'leadership@example.com', NULL, NULL); -- Seven people. Dana Ruiz and Ana Lima are admins. Job titles in the spec's table have no column and are not loaded. INSERT INTO people (id, name, email, is_admin, active) VALUES ('p_dana', 'Dana Ruiz', 'dana@example.com', TRUE, TRUE), ('p_ana', 'Ana Lima', 'ana@example.com', TRUE, TRUE), ('p_maya', 'Maya Chen', 'maya@example.com', FALSE, TRUE), ('p_sam', 'Sam Okafor', 'sam@example.com', FALSE, TRUE), ('p_ben', 'Ben Cho', 'ben@example.com', FALSE, TRUE), ('p_jo', 'Jo Park', 'jo@example.com', FALSE, TRUE), ('p_lee', 'Lee Park', 'lee@example.com', FALSE, TRUE); -- Four projects, each created by its owner at 10:00 team time on the Monday of its start week. INSERT INTO projects (id, name, owner_id, target_date, start_week, archived_at, created_by, created_at) VALUES ('pr_website', 'Website relaunch', 'p_dana', '2026-10-27', '2026-09-21', NULL, 'p_dana', '2026-09-21 14:00:00'), ('pr_crm', 'CRM migration', 'p_sam', '2026-11-03', '2026-09-21', NULL, 'p_sam', '2026-09-21 14:00:00'), ('pr_pricing', 'Q4 pricing', 'p_ana', '2026-10-23', '2026-09-28', NULL, 'p_ana', '2026-09-28 14:00:00'), ('pr_hiring', 'Hiring plan', 'p_maya', '2026-11-10', '2026-09-21', NULL, 'p_maya', '2026-09-21 14:00:00'); -- Thirteen updates, each posted by the project's owner with revision 1. Past weeks at 11:00 team time on that Monday; -- this week's at the moment of seeding. Hiring plan has no update for Sep 28 or Oct 12. INSERT INTO updates (id, project_id, week_start, health, note, posted_by, posted_at, revision) VALUES ('u_website_0921', 'pr_website', '2026-09-21', 'at_risk', 'Design review slipped a week; launch date unchanged for now.', 'p_dana', '2026-09-21 15:00:00', 1), ('u_website_0928', 'pr_website', '2026-09-28', 'on_track', 'Design review done; build started.', 'p_dana', '2026-09-28 15:00:00', 1), ('u_website_1005', 'pr_website', '2026-10-05', 'on_track', 'All pages built; content migration half done.', 'p_dana', '2026-10-05 15:00:00', 1), ('u_website_1012', 'pr_website', '2026-10-12', 'on_track', 'Content migrated; QA starts Wednesday.', 'p_dana', '2026-10-13 14:00:00', 1), ('u_crm_0921', 'pr_crm', '2026-09-21', 'on_track', 'Field mapping agreed with Sales.', 'p_sam', '2026-09-21 15:00:00', 1), ('u_crm_0928', 'pr_crm', '2026-09-28', 'on_track', 'Test import of 500 accounts passed.', 'p_sam', '2026-09-28 15:00:00', 1), ('u_crm_1005', 'pr_crm', '2026-10-05', 'on_track', 'Full export requested from the old vendor.', 'p_sam', '2026-10-05 15:00:00', 1), ('u_crm_1012', 'pr_crm', '2026-10-12', 'blocked', 'Vendor export credentials not yet received; Sam is following up.', 'p_sam', '2026-10-13 14:00:00', 1), ('u_pricing_0928', 'pr_pricing', '2026-09-28', 'on_track', 'Pricing model approved by Dana.', 'p_ana', '2026-09-28 15:00:00', 1), ('u_pricing_1005', 'pr_pricing', '2026-10-05', 'on_track', 'Draft price list shared with Sales.', 'p_ana', '2026-10-05 15:00:00', 1), ('u_pricing_1012', 'pr_pricing', '2026-10-12', 'at_risk', 'Pricing page copy is two days late; launch holds if legal signs off this week.', 'p_ana', '2026-10-13 14:00:00', 1), ('u_hiring_0921', 'pr_hiring', '2026-09-21', 'on_track', 'Three roles approved; job posts drafted.', 'p_maya', '2026-09-21 15:00:00', 1), ('u_hiring_1005', 'pr_hiring', '2026-10-05', 'on_track', 'Job posts live; 14 applicants so far.', 'p_maya', '2026-10-05 15:00:00', 1); -- One project_created activity per project and one update_posted activity per update, at the same times. -- The spec gives no data payload for these rows, so data is empty. INSERT INTO activities (id, project_id, actor_id, type, data, created_at) VALUES ('a_website_created', 'pr_website', 'p_dana', 'project_created', NULL, '2026-09-21 14:00:00'), ('a_crm_created', 'pr_crm', 'p_sam', 'project_created', NULL, '2026-09-21 14:00:00'), ('a_pricing_created', 'pr_pricing', 'p_ana', 'project_created', NULL, '2026-09-28 14:00:00'), ('a_hiring_created', 'pr_hiring', 'p_maya', 'project_created', NULL, '2026-09-21 14:00:00'), ('a_website_0921', 'pr_website', 'p_dana', 'update_posted', NULL, '2026-09-21 15:00:00'), ('a_website_0928', 'pr_website', 'p_dana', 'update_posted', NULL, '2026-09-28 15:00:00'), ('a_website_1005', 'pr_website', 'p_dana', 'update_posted', NULL, '2026-10-05 15:00:00'), ('a_website_1012', 'pr_website', 'p_dana', 'update_posted', NULL, '2026-10-13 14:00:00'), ('a_crm_0921', 'pr_crm', 'p_sam', 'update_posted', NULL, '2026-09-21 15:00:00'), ('a_crm_0928', 'pr_crm', 'p_sam', 'update_posted', NULL, '2026-09-28 15:00:00'), ('a_crm_1005', 'pr_crm', 'p_sam', 'update_posted', NULL, '2026-10-05 15:00:00'), ('a_crm_1012', 'pr_crm', 'p_sam', 'update_posted', NULL, '2026-10-13 14:00:00'), ('a_pricing_0928', 'pr_pricing', 'p_ana', 'update_posted', NULL, '2026-09-28 15:00:00'), ('a_pricing_1005', 'pr_pricing', 'p_ana', 'update_posted', NULL, '2026-10-05 15:00:00'), ('a_pricing_1012', 'pr_pricing', 'p_ana', 'update_posted', NULL, '2026-10-13 14:00:00'), ('a_hiring_0921', 'pr_hiring', 'p_maya', 'update_posted', NULL, '2026-09-21 15:00:00'), ('a_hiring_1005', 'pr_hiring', 'p_maya', 'update_posted', NULL, '2026-10-05 15:00:00');