-- Seed data for the OKR Tracker schema, from section 14 of the blueprint. Load after okr-tracker.sql. -- Fernway. The spec's clock: today is Thursday 2026-10-15, 09:00 in America/New_York (13:00 UTC); Q4 2026 is on day 15 of 92. -- Values are hundredths: 8% is 800, $40,000 is 4000000, 4.5 hours is 450. Milestones store 0 and 100. -- The check-in history is not loaded: see the seedNote on the schema page. INSERT INTO settings (id, company_name, email_domain, currency, time_zone, reminder_day, reminder_time, summary_day, summary_time) VALUES (1, 'Fernway', 'fernway.example', 'USD', 'America/New_York', 'Monday', '09:00', 'Friday', '16:00'); INSERT INTO teams (id, name, lead_id) VALUES ('sales', 'Sales', 'ben'), ('product', 'Product', 'priya'), ('support', 'Support', 'sam'); -- Nora is the CEO with no team; titles are not stored. INSERT INTO people (id, name, email, role, team_id, active) VALUES ('nora', 'Nora Quinn', 'nora@fernway.example', 'admin', NULL, TRUE), ('ben', 'Ben Ortiz', 'ben@fernway.example', 'member', 'sales', TRUE), ('mia', 'Mia Chen', 'mia@fernway.example', 'member', 'sales', TRUE), ('priya', 'Priya Rao', 'priya@fernway.example', 'member', 'product', TRUE), ('leo', 'Leo Park', 'leo@fernway.example', 'member', 'product', TRUE), ('sam', 'Sam Lee', 'sam@fernway.example', 'member', 'support', TRUE); -- Q4 started 14 days ago and has 92 days. Q3 is the 92 days before it, closed by Nora at 09:00 company time on Q4's first day. INSERT INTO cycles (id, name, starts_on, ends_on, status, closed_at, closed_by) VALUES ('q3-2026', 'Q3 2026', '2026-07-01', '2026-09-30', 'closed', '2026-10-01 13:00:00', 'nora'), ('q4-2026', 'Q4 2026', '2026-10-01', '2026-12-31', 'active', NULL, NULL); -- Company objectives first, so team objectives can align to them. Q3's final score: (100% + 60%) / 2 = 8000 basis points, shown 0.8. INSERT INTO objectives (id, cycle_id, level, team_id, title, description, owner_id, aligned_to_id, position, final_score_bp, carried_from_id) VALUES ('q3-checkout', 'q3-2026', 'company', NULL, 'Launch self-serve checkout', NULL, 'nora', NULL, 1, 8000, NULL), ('q4-revenue', 'q4-2026', 'company', NULL, 'Grow revenue from self-serve customers', NULL, 'nora', NULL, 1, NULL, NULL), ('q4-retention', 'q4-2026', 'company', NULL, 'Keep customers longer', NULL, 'nora', NULL, 2, NULL, NULL), ('q4-partners', 'q4-2026', 'team', 'sales', 'Build a partner channel', NULL, 'ben', 'q4-revenue', 1, NULL, NULL), ('q4-trial', 'q4-2026', 'team', 'product', 'Make the trial easier to start', NULL, 'priya', 'q4-revenue', 1, NULL, NULL), ('q4-support', 'q4-2026', 'team', 'support', 'Answer customers faster', NULL, 'sam', 'q4-retention', 1, NULL, NULL); -- Q4 latest check-ins are at 10:00 company time (14:00 UTC): partner program page 9 days ago (Oct 6), help articles 8 days ago (Oct 7), -- and the others "1 or 2 days ago" in the spec, loaded as 2 days ago (Oct 13). Q3's check-ins are not described, so its key results have none. INSERT INTO key_results (id, objective_id, title, owner_id, metric, unit, direction, start_x100, target_x100, current_x100, confidence, last_check_in_at, final_progress_bp, position, carried_from_id) VALUES ('kr-q3-checkout', 'q3-checkout', 'Ship checkout to all plans', 'priya', 'milestone', NULL, 'increase', 0, 100, 100, NULL, NULL, 10000, 1, NULL), ('kr-q3-signups', 'q3-checkout', 'Reach 200 self-serve signups a month', 'ben', 'number', NULL, 'increase', 0, 20000, 12000, NULL, NULL, 6000, 2, NULL), ('kr-conversion', 'q4-revenue', 'Increase trial-to-paid conversion from 8% to 12%', 'priya', 'percent', NULL, 'increase', 800, 1200, 900, 'on_track', '2026-10-13 14:00:00', NULL, 1, NULL), ('kr-mrr', 'q4-revenue', 'Grow self-serve MRR from $40,000 to $55,000', 'ben', 'currency', NULL, 'increase', 4000000, 5500000, 4050000, 'at_risk', '2026-10-13 14:00:00', NULL, 2, NULL), ('kr-churn', 'q4-retention', 'Reduce monthly logo churn from 3.0% to 2.0%', 'sam', 'percent', NULL, 'decrease', 300, 200, 280, 'on_track', '2026-10-13 14:00:00', NULL, 1, NULL), ('kr-nps', 'q4-retention', 'Raise NPS from 32 to 40', 'priya', 'number', NULL, 'increase', 3200, 4000, 3600, 'on_track', '2026-10-13 14:00:00', NULL, 2, NULL), ('kr-partners', 'q4-partners', 'Sign 10 new partners', 'mia', 'number', 'partners', 'increase', 0, 1000, 300, 'on_track', '2026-10-13 14:00:00', NULL, 1, NULL), ('kr-partner-page', 'q4-partners', 'Launch the partner program page', 'ben', 'milestone', NULL, 'increase', 0, 100, 0, 'at_risk', '2026-10-06 14:00:00', NULL, 2, NULL), ('kr-first-invoice', 'q4-trial', 'Cut median time to first invoice from 20 to 5 minutes', 'leo', 'number', 'minutes', 'decrease', 2000, 500, 1400, 'on_track', '2026-10-13 14:00:00', NULL, 1, NULL), ('kr-checklist', 'q4-trial', 'Ship the guided setup checklist', 'leo', 'milestone', NULL, 'increase', 0, 100, 100, 'on_track', '2026-10-13 14:00:00', NULL, 2, NULL), ('kr-first-response', 'q4-support', 'Reduce median first response time from 6 to 2 hours', 'sam', 'number', 'hours', 'decrease', 600, 200, 450, 'on_track', '2026-10-13 14:00:00', NULL, 1, NULL), ('kr-help-articles', 'q4-support', 'Publish 20 help articles', 'sam', 'number', 'articles', 'increase', 0, 2000, 2000, 'on_track', '2026-10-07 14:00:00', NULL, 2, NULL);