-- Seed data for the Hiring Pipeline schema, from section 13 of the blueprint. Load after hiring-pipeline.sql. -- T is Tue 13 Oct 2026, the day the seed is loaded (the clock is set to 08:00 EDT, 12:00 UTC). Times the spec gives in EDT are converted to UTC (+4 hours). -- Where the spec gives a date but no time, the time is 12:00 UTC. Every value marked placeholder below is not in the spec; the JSON seedNote lists them all. -- privacy_notice is a placeholder: the spec only describes it as a short privacy notice. INSERT INTO settings (id, company_name, time_zone, careers_intro, privacy_notice, privacy_version, retention_days, rejection_template, last_digest_at) VALUES (1, 'Fernway', 'America/New_York', NULL, 'Seed placeholder: the spec describes a short privacy notice and leaves its text to the builder.', 1, 180, 'Hi {candidate_first_name}, thank you for applying for {role_title} at {company_name}. We''ve decided not to move forward with your application. We wish you the best with your search.', NULL); -- Emails are placeholders: the spec gives none for the team. INSERT INTO people (id, name, email, is_admin, active) VALUES ('p_dana', 'Dana Ruiz', 'dana.ruiz@fernway.example', TRUE, TRUE), ('p_maya', 'Maya Rivera', 'maya.rivera@fernway.example', FALSE, TRUE), ('p_sam', 'Sam Okafor', 'sam.okafor@fernway.example', FALSE, TRUE), ('p_jo', 'Jo Park', 'jo.park@fernway.example', FALSE, TRUE), ('p_ben', 'Ben Cho', 'ben.cho@fernway.example', FALSE, TRUE), ('p_ana', 'Ana Lima', 'ana.lima@fernway.example', FALSE, TRUE), ('p_lee', 'Lee Park', 'lee.park@fernway.example', FALSE, TRUE); -- description is a placeholder. opened_at is a placeholder: 12:00 UTC on the date of the earliest seeded application for the role. INSERT INTO roles (id, title, department, location, description, hiring_manager_id, status, opened_at, closed_at) VALUES ('r_designer', 'Product Designer', NULL, 'Remote (US)', 'Seed placeholder: the spec leaves the role description to the builder.', 'p_maya', 'open', '2026-02-25 12:00:00', NULL), ('r_ae', 'Account Executive', NULL, 'New York', 'Seed placeholder: the spec leaves the role description to the builder.', 'p_sam', 'open', '2026-09-23 12:00:00', NULL), ('r_ops', 'Operations Lead', NULL, 'Remote (US)', 'Seed placeholder: the spec leaves the role description to the builder.', 'p_jo', 'open', '2026-09-18 12:00:00', NULL); INSERT INTO role_attributes (id, role_id, name, position) VALUES ('ra_d1', 'r_designer', 'Interaction design', 1), ('ra_d2', 'r_designer', 'User research', 2), ('ra_d3', 'r_designer', 'Visual craft', 3), ('ra_d4', 'r_designer', 'Collaboration', 4), ('ra_a1', 'r_ae', 'Discovery questions', 1), ('ra_a2', 'r_ae', 'Product knowledge', 2), ('ra_a3', 'r_ae', 'Written follow-up', 3), ('ra_a4', 'r_ae', 'Coachability', 4), ('ra_o1', 'r_ops', 'Process design', 1), ('ra_o2', 'r_ops', 'Prioritization', 2), ('ra_o3', 'r_ops', 'Stakeholder communication', 3); INSERT INTO candidates (id, name, email, phone, link, anonymized_at) VALUES ('c_mei', 'Mei Chen', 'mei.chen@example.com', NULL, NULL, NULL), ('c_leo', 'Leo Gray', 'leo.gray@example.com', NULL, NULL, NULL), ('c_ravi', 'Ravi Patel', 'ravi.patel@example.com', NULL, NULL, NULL), ('c_sora', 'Sora Ito', 'sora.ito@example.com', NULL, NULL, NULL), ('c_taylor', 'Taylor Moss', 'taylor.moss@example.com', NULL, NULL, NULL), ('c_ari', 'Ari Diaz', 'ari.diaz@example.com', NULL, NULL, NULL), ('c_jamie', 'Jamie Kim', 'jamie.kim@example.com', NULL, NULL, NULL), ('c_noor', 'Noor Haddad', 'noor.haddad@example.com', NULL, NULL, NULL), ('c_kai', 'Kai Brooks', 'kai.brooks@example.com', NULL, NULL, NULL); -- answer on careers-page applications is a placeholder. withdraw_token values are placeholders, not random: generate real tokens before any real use. -- stage_changed_at: applied_at while still in Applied and closed_at once closed; for Leo, Sora and Ari it is a placeholder (applied_at), and for Taylor a placeholder after the T-8 scorecards. INSERT INTO applications (id, candidate_id, role_id, source, source_detail, answer, consent_at, consent_version, stage, stage_before_close, reject_reason, close_note, applied_at, stage_changed_at, closed_at, withdraw_token, anonymized_at) VALUES ('a_mei', 'c_mei', 'r_designer', 'referral', 'Lee Park', NULL, NULL, NULL, 'applied', NULL, NULL, NULL, '2026-10-11 12:00:00', '2026-10-11 12:00:00', NULL, 'seed-placeholder-token-mei-0000000000000', NULL), ('a_leo', 'c_leo', 'r_designer', 'careers_page', NULL, 'Seed placeholder: the spec leaves the answer to the builder.', '2026-10-07 12:00:00', 1, 'screen', NULL, NULL, NULL, '2026-10-07 12:00:00', '2026-10-07 12:00:00', NULL, 'seed-placeholder-token-leo-0000000000000', NULL), ('a_ravi', 'c_ravi', 'r_ae', 'sourced', NULL, NULL, NULL, NULL, 'applied', NULL, NULL, NULL, '2026-10-12 12:00:00', '2026-10-12 12:00:00', NULL, 'seed-placeholder-token-ravi-000000000000', NULL), ('a_sora', 'c_sora', 'r_ae', 'referral', 'Ana Lima', NULL, NULL, NULL, 'interview', NULL, NULL, NULL, '2026-10-01 12:00:00', '2026-10-01 12:00:00', NULL, 'seed-placeholder-token-sora-000000000000', NULL), ('a_taylor', 'c_taylor', 'r_ae', 'agency', NULL, NULL, NULL, NULL, 'offer', NULL, NULL, NULL, '2026-09-23 12:00:00', '2026-10-05 23:00:00', NULL, 'seed-placeholder-token-taylor-0000000000', NULL), ('a_ari', 'c_ari', 'r_ops', 'careers_page', NULL, 'Seed placeholder: the spec leaves the answer to the builder.', '2026-10-03 12:00:00', 1, 'interview', NULL, NULL, NULL, '2026-10-03 12:00:00', '2026-10-03 12:00:00', NULL, 'seed-placeholder-token-ari-0000000000000', NULL), ('a_jamie', 'c_jamie', 'r_ops', 'other', 'Community meetup', NULL, NULL, NULL, 'applied', NULL, NULL, NULL, '2026-10-10 12:00:00', '2026-10-10 12:00:00', NULL, 'seed-placeholder-token-jamie-00000000000', NULL), ('a_noor', 'c_noor', 'r_designer', 'careers_page', NULL, 'Seed placeholder: the spec leaves the answer to the builder.', '2026-02-25 12:00:00', 1, 'rejected', 'screen', 'chose_another', NULL, '2026-02-25 12:00:00', '2026-03-27 12:00:00', '2026-03-27 12:00:00', 'seed-placeholder-token-noor-000000000000', NULL), ('a_kai', 'c_kai', 'r_ops', 'careers_page', NULL, 'Seed placeholder: the spec leaves the answer to the builder.', '2026-09-18 12:00:00', 1, 'withdrawn', 'screen', NULL, NULL, '2026-09-18 12:00:00', '2026-10-03 12:00:00', '2026-10-03 12:00:00', 'seed-placeholder-token-kai-0000000000000', NULL); -- location is a placeholder; duration_minutes and created_by are not in the spec and stay empty; created_at is a placeholder (the application date). INSERT INTO interviews (id, application_id, kind, starts_at, duration_minutes, location, created_by, created_at, cancelled_at) VALUES ('i_leo', 'a_leo', 'screen', '2026-10-14 14:00:00', NULL, 'Seed placeholder: the spec leaves the location to the builder.', NULL, '2026-10-07 12:00:00', NULL), ('i_sora', 'a_sora', 'interview', '2026-10-12 18:00:00', NULL, 'Seed placeholder: the spec leaves the location to the builder.', NULL, '2026-10-01 12:00:00', NULL), ('i_taylor', 'a_taylor', 'interview', '2026-10-05 12:00:00', NULL, 'Seed placeholder: the spec leaves the location to the builder.', NULL, '2026-09-23 12:00:00', NULL), ('i_ari', 'a_ari', 'interview', '2026-10-11 15:00:00', NULL, 'Seed placeholder: the spec leaves the location to the builder.', NULL, '2026-10-03 12:00:00', NULL); -- submitted_at is a placeholder: 23:00 UTC on the interview day, after it started and before T. Takeaways other than Ben Cho on Sora Ito are placeholders. INSERT INTO scorecards (id, interview_id, interviewer_id, status, takeaways, recommendation, submitted_at, reminded_at) VALUES ('s_leo_maya', 'i_leo', 'p_maya', 'pending', NULL, NULL, NULL, NULL), ('s_sora_sam', 'i_sora', 'p_sam', 'pending', NULL, NULL, NULL, NULL), ('s_sora_ben', 'i_sora', 'p_ben', 'submitted', 'Strong discovery, asked good follow-ups. Written recap was thin.', 'yes', '2026-10-12 23:00:00', NULL), ('s_taylor_sam', 'i_taylor', 'p_sam', 'submitted', 'Seed placeholder: the spec leaves these takeaways to the builder.', 'strong_yes', '2026-10-05 23:00:00', NULL), ('s_taylor_ben', 'i_taylor', 'p_ben', 'submitted', 'Seed placeholder: the spec leaves these takeaways to the builder.', 'yes', '2026-10-05 23:00:00', NULL), ('s_ari_jo', 'i_ari', 'p_jo', 'submitted', 'Seed placeholder: the spec leaves these takeaways to the builder.', 'strong_yes', '2026-10-11 23:00:00', NULL), ('s_ari_ana', 'i_ari', 'p_ana', 'submitted', 'Seed placeholder: the spec leaves these takeaways to the builder.', 'yes', '2026-10-11 23:00:00', NULL); -- Only Ben Cho on Sora Ito has ratings in the spec. INSERT INTO attribute_ratings (scorecard_id, attribute_id, rating) VALUES ('s_sora_ben', 'ra_a1', 3), ('s_sora_ben', 'ra_a2', 3), ('s_sora_ben', 'ra_a3', 2), ('s_sora_ben', 'ra_a4', 4); -- created_at is a placeholder (the application date). INSERT INTO notes (id, application_id, author_id, text, created_at) VALUES ('n_mei', 'a_mei', 'p_maya', 'Referred by Lee; portfolio link looks strong.', '2026-10-11 12:00:00');