-- Seed data for the Bug Tracker schema, from section 14 of the blueprint. Load after bug-tracker.sql. -- The spec gives team times (America/New_York, EDT, UTC-4) in 2026; every timestamp below is that time converted to UTC. -- The spec leaves the steps, what happened and where text of seeded bugs to the builder, so those columns hold one fixed placeholder each. INSERT INTO settings (id, company_name, time_zone, target_s1_hours, target_s2_hours, target_s3_hours, target_s4_hours, reopen_window_days, form_enabled, last_bug_number) VALUES (1, 'Wrenfield', 'America/New_York', 24, 168, 720, NULL, 30, TRUE, 114); INSERT INTO people (id, name, email, is_admin, is_triager, is_qa, active) VALUES ('p_hannah', 'Hannah Ortiz', 'hannah@wrenfield.example', TRUE, TRUE, FALSE, TRUE), ('p_marcus', 'Marcus Webb', 'marcus@wrenfield.example', FALSE, TRUE, FALSE, TRUE), ('p_nina', 'Nina Patel', 'nina@wrenfield.example', FALSE, FALSE, TRUE, TRUE), ('p_theo', 'Theo Lindqvist', 'theo@wrenfield.example', FALSE, FALSE, FALSE, TRUE), ('p_grace', 'Grace Kim', 'grace@wrenfield.example', FALSE, FALSE, FALSE, TRUE), ('p_kofi', 'Kofi Mensah', 'kofi@wrenfield.example', FALSE, FALSE, FALSE, TRUE), ('p_lucy', 'Lucy Tran', 'lucy@wrenfield.example', FALSE, FALSE, FALSE, TRUE), ('p_ines', 'Ines Moreau', 'ines@wrenfield.example', FALSE, FALSE, FALSE, TRUE); INSERT INTO areas (id, name, active) VALUES ('a_web', 'Web app', TRUE), ('a_mobile', 'Mobile app', TRUE), ('a_api', 'API', TRUE), ('a_payments', 'Payments', TRUE); -- BUG-110 points at BUG-104, so BUG-104 is inserted first. version counts the actions the history implies (R17). INSERT INTO bugs (id, number, version, title, area_id, severity, priority, status, steps, expected, actual, environment, link, source, reporter_id, reporter_name, reporter_email, assignee_id, duplicate_of_id, review_link, fix_note, fixed_by_id, fixed_at, fix_due_at, overdue_notified_at, triaged_at, closed_at, reopen_count, created_at, updated_at) VALUES ('b_101', 101, 5, 'Password reset link expires immediately', 'a_web', 's2', 'p2', 'verified', 'Seed placeholder: the spec leaves the steps to the builder.', NULL, 'Seed placeholder: the spec leaves what happened to the builder.', 'Seed placeholder: the spec leaves where it happened to the builder.', NULL, 'team', 'p_lucy', NULL, NULL, 'p_theo', NULL, NULL, 'Token lifetime was read as minutes, not hours. PR #812.', 'p_theo', '2026-08-27 19:00:00', '2026-08-31 13:00:00', NULL, '2026-08-24 15:00:00', '2026-09-04 14:00:00', 0, '2026-08-24 13:00:00', '2026-09-04 14:00:00'), ('b_102', 102, 2, 'Due date picker shows the wrong month on iPad', 'a_mobile', 's3', 'p3', 'triaged', 'Seed placeholder: the spec leaves the steps to the builder.', NULL, 'Seed placeholder: the spec leaves what happened to the builder.', 'Seed placeholder: the spec leaves where it happened to the builder.', NULL, 'team', 'p_ines', NULL, NULL, 'p_kofi', NULL, NULL, NULL, NULL, NULL, '2026-09-30 14:00:00', '2026-09-30 15:00:00', '2026-09-01 13:00:00', NULL, 0, '2026-08-31 14:00:00', '2026-09-30 15:00:00'), ('b_103', 103, 4, 'Dashboard totals are off by one cent', 'a_web', 's3', 'p3', 'cannot_reproduce', 'Seed placeholder: the spec leaves the steps to the builder.', NULL, 'Seed placeholder: the spec leaves what happened to the builder.', 'Seed placeholder: the spec leaves where it happened to the builder.', NULL, 'team', 'p_lucy', NULL, NULL, 'p_grace', NULL, NULL, NULL, NULL, NULL, '2026-10-15 18:00:00', NULL, '2026-09-16 14:00:00', '2026-10-08 15:00:00', 0, '2026-09-15 18:00:00', '2026-10-08 15:00:00'), ('b_104', 104, 3, 'Export to CSV times out for large accounts', 'a_web', 's2', 'p1', 'in_progress', 'Seed placeholder: the spec leaves the steps to the builder.', NULL, 'Seed placeholder: the spec leaves what happened to the builder.', 'Seed placeholder: the spec leaves where it happened to the builder.', NULL, 'team', 'p_lucy', NULL, NULL, 'p_theo', NULL, NULL, NULL, NULL, NULL, '2026-10-12 13:00:00', NULL, '2026-10-05 15:00:00', NULL, 0, '2026-10-05 13:00:00', '2026-10-07 19:00:00'), ('b_105', 105, 5, 'Invoice PDF shows the wrong currency symbol', 'a_payments', 's3', 'p2', 'verified', 'Seed placeholder: the spec leaves the steps to the builder.', NULL, 'Seed placeholder: the spec leaves what happened to the builder.', 'Seed placeholder: the spec leaves where it happened to the builder.', NULL, 'team', 'p_lucy', NULL, NULL, 'p_grace', NULL, NULL, 'Uses the account currency, not the browser locale. PR #1244.', 'p_grace', '2026-10-01 20:00:00', '2026-10-22 14:00:00', NULL, '2026-09-22 19:00:00', '2026-10-05 18:00:00', 0, '2026-09-22 14:00:00', '2026-10-05 18:00:00'), ('b_106', 106, 4, 'App logs me out every time I switch screens', 'a_mobile', 's2', 'p2', 'fixed', 'Seed placeholder: the spec leaves the steps to the builder.', NULL, 'Seed placeholder: the spec leaves what happened to the builder.', NULL, NULL, 'form', NULL, 'Erin Walsh', 'erin@bluebird.example', 'p_kofi', NULL, NULL, 'Session token was cleared on every screen change on iOS 18. Build 4.12.1.', 'p_kofi', '2026-10-09 19:00:00', '2026-10-15 00:15:00', NULL, '2026-10-08 13:00:00', NULL, 0, '2026-10-08 00:15:00', '2026-10-09 19:00:00'), ('b_107', 107, 6, 'Search ignores accented characters', 'a_web', 's3', 'p3', 'fixed', 'Seed placeholder: the spec leaves the steps to the builder.', NULL, 'Seed placeholder: the spec leaves what happened to the builder.', 'Seed placeholder: the spec leaves where it happened to the builder.', NULL, 'team', 'p_lucy', NULL, NULL, 'p_theo', NULL, NULL, 'Customer search ignores accents too. PR #1301.', 'p_theo', '2026-10-09 15:00:00', '2026-10-29 15:00:00', NULL, '2026-09-30 14:00:00', NULL, 1, '2026-09-29 15:00:00', '2026-10-09 15:00:00'), ('b_108', 108, 4, 'Tooltip covers the Save button on narrow screens', 'a_web', 's4', 'p4', 'fixed', 'Seed placeholder: the spec leaves the steps to the builder.', NULL, 'Seed placeholder: the spec leaves what happened to the builder.', 'Seed placeholder: the spec leaves where it happened to the builder.', NULL, 'team', 'p_grace', NULL, NULL, 'p_grace', NULL, NULL, 'Tooltip opens above the button when there is no room below. PR #1320.', 'p_grace', '2026-10-12 19:00:00', NULL, NULL, '2026-10-02 13:00:00', NULL, 0, '2026-10-01 19:00:00', '2026-10-12 19:00:00'), ('b_109', 109, 4, 'Bulk delete removes one invoice too many', 'a_web', 's2', 'p1', 'in_review', 'Seed placeholder: the spec leaves the steps to the builder.', NULL, 'Seed placeholder: the spec leaves what happened to the builder.', 'Seed placeholder: the spec leaves where it happened to the builder.', NULL, 'team', 'p_nina', NULL, NULL, 'p_theo', NULL, 'https://git.example/wrenfield/web/pull/1322', NULL, NULL, NULL, '2026-10-14 15:30:00', NULL, '2026-10-07 16:00:00', NULL, 0, '2026-10-07 15:30:00', '2026-10-12 21:00:00'), ('b_110', 110, 2, 'CSV export spins forever on big customers', 'a_web', 's2', NULL, 'duplicate', 'Seed placeholder: the spec leaves the steps to the builder.', NULL, 'Seed placeholder: the spec leaves what happened to the builder.', 'Seed placeholder: the spec leaves where it happened to the builder.', NULL, 'team', 'p_ines', NULL, NULL, NULL, 'b_104', NULL, NULL, NULL, NULL, '2026-10-14 17:00:00', NULL, NULL, '2026-10-07 19:00:00', 0, '2026-10-07 17:00:00', '2026-10-07 19:00:00'), ('b_111', 111, 2, 'Add a dark theme to the invoice editor', 'a_web', 's4', NULL, 'wont_fix', 'Seed placeholder: the spec leaves the steps to the builder.', NULL, 'Seed placeholder: the spec leaves what happened to the builder.', 'Seed placeholder: the spec leaves where it happened to the builder.', NULL, 'team', 'p_kofi', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-10-06 20:00:00', 0, '2026-10-06 14:00:00', '2026-10-06 20:00:00'), ('b_112', 112, 2, 'Reminder emails go out twice on Mondays', 'a_payments', 's3', 'p2', 'triaged', 'Seed placeholder: the spec leaves the steps to the builder.', NULL, 'Seed placeholder: the spec leaves what happened to the builder.', 'Seed placeholder: the spec leaves where it happened to the builder.', NULL, 'team', 'p_nina', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-11-08 13:30:00', NULL, '2026-10-09 15:00:00', NULL, 0, '2026-10-09 13:30:00', '2026-10-09 15:00:00'), ('b_113', 113, 1, 'Exporting invoices to CSV times out', 'a_web', 's2', NULL, 'new', 'Seed placeholder: the spec leaves the steps to the builder.', NULL, 'Seed placeholder: the spec leaves what happened to the builder.', 'Seed placeholder: the spec leaves where it happened to the builder.', NULL, 'team', 'p_kofi', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-10-19 20:00:00', NULL, NULL, NULL, 0, '2026-10-12 20:00:00', '2026-10-12 20:00:00'), ('b_114', 114, 1, 'Android app crashes when uploading a receipt photo', 'a_mobile', 's1', NULL, 'new', 'Seed placeholder: the spec leaves the steps to the builder.', NULL, 'Seed placeholder: the spec leaves what happened to the builder.', 'Seed placeholder: the spec leaves where it happened to the builder.', NULL, 'team', 'p_lucy', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-10-14 11:30:00', NULL, NULL, NULL, 0, '2026-10-13 11:30:00', '2026-10-13 11:30:00'); -- Each bug: its team reporter, its assignee and its commenters, plus Ines on BUG-104 (from BUG-110). INSERT INTO watchers (bug_id, person_id) VALUES ('b_101', 'p_lucy'), ('b_101', 'p_theo'), ('b_102', 'p_ines'), ('b_102', 'p_kofi'), ('b_103', 'p_lucy'), ('b_103', 'p_grace'), ('b_104', 'p_lucy'), ('b_104', 'p_theo'), ('b_104', 'p_ines'), ('b_105', 'p_lucy'), ('b_105', 'p_grace'), ('b_106', 'p_kofi'), ('b_107', 'p_lucy'), ('b_107', 'p_theo'), ('b_108', 'p_grace'), ('b_109', 'p_nina'), ('b_109', 'p_theo'), ('b_110', 'p_ines'), ('b_111', 'p_kofi'), ('b_111', 'p_marcus'), ('b_112', 'p_nina'), ('b_113', 'p_kofi'), ('b_114', 'p_lucy'); INSERT INTO comments (id, bug_id, author_id, body, created_at) VALUES ('c_1', 'b_111', 'p_marcus', 'Feature request, not a bug. Added to the roadmap list.', '2026-10-06 20:00:00'), ('c_2', 'b_104', 'p_theo', 'Reproduced with the Bluebird account, 48,000 invoices. The export loads every row into memory.', '2026-10-06 13:05:00'), ('c_3', 'b_107', 'p_lucy', 'Customer search still treats Müller and Muller as different names.', '2026-10-08 14:00:00'), ('c_4', 'b_103', 'p_grace', 'Totals match the ledger for all 12 accounts I checked.', '2026-10-08 15:00:00'); -- data is left NULL: the spec lists what it carries but not its JSON shape. INSERT INTO events (id, seq, bug_id, actor_id, type, data, created_at) VALUES ('e_01', 1, 'b_101', 'p_lucy', 'reported', NULL, '2026-08-24 13:00:00'), ('e_02', 2, 'b_101', 'p_marcus', 'triaged', NULL, '2026-08-24 15:00:00'), ('e_03', 3, 'b_101', 'p_theo', 'started', NULL, '2026-08-25 13:30:00'), ('e_04', 4, 'b_101', 'p_theo', 'fixed', NULL, '2026-08-27 19:00:00'), ('e_05', 5, 'b_102', 'p_ines', 'reported', NULL, '2026-08-31 14:00:00'), ('e_06', 6, 'b_102', 'p_marcus', 'triaged', NULL, '2026-09-01 13:00:00'), ('e_07', 7, 'b_101', 'p_lucy', 'verified', NULL, '2026-09-04 14:00:00'), ('e_08', 8, 'b_103', 'p_lucy', 'reported', NULL, '2026-09-15 18:00:00'), ('e_09', 9, 'b_103', 'p_hannah', 'triaged', NULL, '2026-09-16 14:00:00'), ('e_10', 10, 'b_105', 'p_lucy', 'reported', NULL, '2026-09-22 14:00:00'), ('e_11', 11, 'b_105', 'p_marcus', 'triaged', NULL, '2026-09-22 19:00:00'), ('e_12', 12, 'b_105', 'p_grace', 'started', NULL, '2026-09-28 13:00:00'), ('e_13', 13, 'b_107', 'p_lucy', 'reported', NULL, '2026-09-29 15:00:00'), ('e_14', 14, 'b_107', 'p_marcus', 'triaged', NULL, '2026-09-30 14:00:00'), ('e_15', 15, 'b_102', NULL, 'overdue', NULL, '2026-09-30 15:00:00'), ('e_16', 16, 'b_108', 'p_grace', 'reported', NULL, '2026-10-01 19:00:00'), ('e_17', 17, 'b_105', 'p_grace', 'fixed', NULL, '2026-10-01 20:00:00'), ('e_18', 18, 'b_108', 'p_hannah', 'triaged', NULL, '2026-10-02 13:00:00'), ('e_19', 19, 'b_104', 'p_lucy', 'reported', NULL, '2026-10-05 13:00:00'), ('e_20', 20, 'b_107', 'p_theo', 'started', NULL, '2026-10-05 13:00:00'), ('e_21', 21, 'b_103', 'p_grace', 'started', NULL, '2026-10-05 14:00:00'), ('e_22', 22, 'b_104', 'p_marcus', 'triaged', NULL, '2026-10-05 15:00:00'), ('e_23', 23, 'b_105', 'p_nina', 'verified', NULL, '2026-10-05 18:00:00'), ('e_24', 24, 'b_104', 'p_theo', 'started', NULL, '2026-10-06 13:00:00'), ('e_25', 25, 'b_104', 'p_theo', 'commented', NULL, '2026-10-06 13:05:00'), ('e_26', 26, 'b_111', 'p_kofi', 'reported', NULL, '2026-10-06 14:00:00'), ('e_27', 27, 'b_111', 'p_marcus', 'wont_fix', NULL, '2026-10-06 20:00:00'), ('e_28', 28, 'b_109', 'p_nina', 'reported', NULL, '2026-10-07 15:30:00'), ('e_29', 29, 'b_109', 'p_hannah', 'triaged', NULL, '2026-10-07 16:00:00'), ('e_30', 30, 'b_110', 'p_ines', 'reported', NULL, '2026-10-07 17:00:00'), ('e_31', 31, 'b_110', 'p_marcus', 'marked_duplicate', NULL, '2026-10-07 19:00:00'), ('e_32', 32, 'b_104', 'p_marcus', 'duplicate_added', NULL, '2026-10-07 19:00:00'), ('e_33', 33, 'b_107', 'p_theo', 'fixed', NULL, '2026-10-07 20:00:00'), ('e_34', 34, 'b_106', NULL, 'reported', NULL, '2026-10-08 00:15:00'), ('e_35', 35, 'b_106', 'p_marcus', 'triaged', NULL, '2026-10-08 13:00:00'), ('e_36', 36, 'b_109', 'p_theo', 'started', NULL, '2026-10-08 13:00:00'), ('e_37', 37, 'b_106', 'p_kofi', 'started', NULL, '2026-10-08 14:00:00'), ('e_38', 38, 'b_107', 'p_lucy', 'reopened', NULL, '2026-10-08 14:00:00'), ('e_39', 39, 'b_103', 'p_grace', 'cannot_reproduce', NULL, '2026-10-08 15:00:00'), ('e_40', 40, 'b_112', 'p_nina', 'reported', NULL, '2026-10-09 13:30:00'), ('e_41', 41, 'b_112', 'p_hannah', 'triaged', NULL, '2026-10-09 15:00:00'), ('e_42', 42, 'b_107', 'p_theo', 'fixed', NULL, '2026-10-09 15:00:00'), ('e_43', 43, 'b_106', 'p_kofi', 'fixed', NULL, '2026-10-09 19:00:00'), ('e_44', 44, 'b_108', 'p_grace', 'started', NULL, '2026-10-12 13:00:00'), ('e_45', 45, 'b_108', 'p_grace', 'fixed', NULL, '2026-10-12 19:00:00'), ('e_46', 46, 'b_113', 'p_kofi', 'reported', NULL, '2026-10-12 20:00:00'), ('e_47', 47, 'b_109', 'p_theo', 'sent_to_review', NULL, '2026-10-12 21:00:00'), ('e_48', 48, 'b_114', 'p_lucy', 'reported', NULL, '2026-10-13 11:30:00');