-- Seed data for the Capacity Planner schema, from section 14 of the blueprint. Load after capacity-planner.sql. -- Larkspur Studio, team time zone America/New_York. The dates are fixed; the spec's clock is Wed 18 Nov 2026, 09:00 (current week: 16 Nov). -- Every seed row was created by Ana Lima at 2026-10-26 14:00:00 UTC, and no booking has changed since. INSERT INTO people (id, name, email, title, role, on_schedule, mon_minutes, tue_minutes, wed_minutes, thu_minutes, fri_minutes, sat_minutes, sun_minutes, active, created_at) VALUES ('dana', 'Dana Ruiz', 'dana@larkspur.example', 'Studio director', 'admin', FALSE, 480, 480, 480, 480, 480, 0, 0, TRUE, '2026-10-26 14:00:00'), ('ana', 'Ana Lima', 'ana@larkspur.example', 'Producer', 'planner', TRUE, 480, 480, 480, 480, 480, 0, 0, TRUE, '2026-10-26 14:00:00'), ('maya', 'Maya Chen', 'maya@larkspur.example', 'Design lead', 'member', TRUE, 480, 480, 480, 480, 480, 0, 0, TRUE, '2026-10-26 14:00:00'), ('jo', 'Jo Park', 'jo@larkspur.example', 'Designer', 'member', TRUE, 480, 480, 480, 0, 0, 0, 0, TRUE, '2026-10-26 14:00:00'), ('sam', 'Sam Okafor', 'sam@larkspur.example', 'Engineering lead', 'member', TRUE, 480, 480, 480, 480, 480, 0, 0, TRUE, '2026-10-26 14:00:00'), ('lee', 'Lee Park', 'lee@larkspur.example', 'Developer', 'member', TRUE, 480, 480, 480, 480, 480, 0, 0, TRUE, '2026-10-26 14:00:00'), ('ben', 'Ben Cho', 'ben@larkspur.example', 'Developer', 'member', TRUE, 480, 480, 480, 480, 0, 0, 0, TRUE, '2026-10-26 14:00:00'), ('priya', 'Priya Nair', 'priya@larkspur.example', 'Copywriter', 'member', TRUE, 360, 360, 360, 360, 360, 0, 0, TRUE, '2026-10-26 14:00:00'), ('tom', 'Tom Bennett', 'tom@larkspur.example', 'Contract developer', 'member', TRUE, 480, 480, 480, 480, 480, 0, 0, TRUE, '2026-10-26 14:00:00'); INSERT INTO skills (id, name) VALUES ('backend', 'Backend'), ('branding', 'Branding'), ('copywriting', 'Copywriting'), ('frontend', 'Frontend'), ('illustration', 'Illustration'), ('project-management', 'Project management'), ('strategy', 'Strategy'), ('ui-design', 'UI design'); INSERT INTO person_skills (person_id, skill_id) VALUES ('dana', 'strategy'), ('ana', 'project-management'), ('maya', 'ui-design'), ('maya', 'branding'), ('jo', 'ui-design'), ('jo', 'illustration'), ('sam', 'frontend'), ('sam', 'backend'), ('lee', 'frontend'), ('ben', 'backend'), ('priya', 'copywriting'), ('priya', 'branding'), ('tom', 'frontend'); INSERT INTO holidays (id, date, name) VALUES ('h-2026-11-26', '2026-11-26', 'Thanksgiving'), ('h-2026-11-27', '2026-11-27', 'Day after Thanksgiving'), ('h-2026-12-25', '2026-12-25', 'Christmas Day'), ('h-2027-01-01', '2027-01-01', 'New Year''s Day'); -- Lee's Friday is a 4-hour part day; the other four are full days. INSERT INTO time_off_entries (id, person_id, start_date, end_date, part_day_minutes, created_by, created_at) VALUES ('to-lee', 'lee', '2026-11-20', '2026-11-20', 240, 'ana', '2026-10-26 14:00:00'), ('to-maya', 'maya', '2026-11-23', '2026-11-25', NULL, 'ana', '2026-10-26 14:00:00'), ('to-priya', 'priya', '2026-11-25', '2026-11-27', NULL, 'ana', '2026-10-26 14:00:00'), ('to-sam', 'sam', '2026-12-07', '2026-12-09', NULL, 'ana', '2026-10-26 14:00:00'), ('to-jo', 'jo', '2026-12-21', '2026-12-23', NULL, 'ana', '2026-10-26 14:00:00'); -- Pinecrest campaign was marked lost by Ana Lima at 2026-11-12 15:00:00 UTC. INSERT INTO projects (id, name, client, status, created_by, created_at, status_changed_by, status_changed_at) VALUES ('brightline', 'Brightline website', 'Brightline Bikes', 'confirmed', 'ana', '2026-10-26 14:00:00', NULL, NULL), ('orchard', 'Orchard app redesign', 'Orchard Health', 'confirmed', 'ana', '2026-10-26 14:00:00', NULL, NULL), ('lumen', 'Lumen rebrand', 'Lumen Coffee', 'tentative', 'ana', '2026-10-26 14:00:00', NULL, NULL), ('studio', 'Studio website', NULL, 'confirmed', 'ana', '2026-10-26 14:00:00', NULL, NULL), ('pinecrest', 'Pinecrest campaign', 'Pinecrest Bank', 'lost', 'ana', '2026-10-26 14:00:00', 'ana', '2026-11-12 15:00:00'); -- Budgets in minutes: 100 h = 6000. Studio website's Refresh phase has no budget. INSERT INTO phases (id, project_id, name, budget_minutes, position, created_at) VALUES ('brightline-design', 'brightline', 'Design', 6000, 1, '2026-10-26 14:00:00'), ('brightline-build', 'brightline', 'Build', 25800, 2, '2026-10-26 14:00:00'), ('orchard-discovery', 'orchard', 'Discovery', 2400, 1, '2026-10-26 14:00:00'), ('orchard-design', 'orchard', 'Design', 9600, 2, '2026-10-26 14:00:00'), ('lumen-identity', 'lumen', 'Identity', 5400, 1, '2026-10-26 14:00:00'), ('studio-refresh', 'studio', 'Refresh', NULL, 1, '2026-10-26 14:00:00'), ('pinecrest-concepts', 'pinecrest', 'Concepts', 2400, 1, '2026-10-26 14:00:00'); -- The 15 bookings of section 14, numbered as there. minutes: 4 h a day = 240 per_day; 16 h a week = 960 per_week. INSERT INTO bookings (id, person_id, phase_id, first_week, last_week, unit, minutes, tentative, note, created_by, created_at, updated_by, updated_at) VALUES ('b01', 'maya', 'brightline-design', '2026-11-02', '2026-11-23', 'per_day', 240, FALSE, NULL, 'ana', '2026-10-26 14:00:00', 'ana', '2026-10-26 14:00:00'), ('b02', 'jo', 'brightline-design', '2026-11-02', '2026-11-23', 'per_week', 960, FALSE, NULL, 'ana', '2026-10-26 14:00:00', 'ana', '2026-10-26 14:00:00'), ('b03', 'lee', 'brightline-build', '2026-11-16', '2026-12-14', 'per_day', 480, FALSE, NULL, 'ana', '2026-10-26 14:00:00', 'ana', '2026-10-26 14:00:00'), ('b04', 'sam', 'brightline-build', '2026-11-23', '2026-12-14', 'per_week', 960, FALSE, NULL, 'ana', '2026-10-26 14:00:00', 'ana', '2026-10-26 14:00:00'), ('b05', 'ben', 'brightline-build', '2026-11-16', '2026-12-14', 'per_week', 1440, FALSE, NULL, 'ana', '2026-10-26 14:00:00', 'ana', '2026-10-26 14:00:00'), ('b06', 'tom', 'brightline-build', '2026-10-26', '2026-11-09', 'per_week', 1200, FALSE, NULL, 'ana', '2026-10-26 14:00:00', 'ana', '2026-10-26 14:00:00'), ('b07', 'ana', 'brightline-build', '2026-11-30', '2026-12-14', 'per_week', 240, TRUE, 'Extra producer time if the change request is approved.', 'ana', '2026-10-26 14:00:00', 'ana', '2026-10-26 14:00:00'), ('b08', 'maya', 'orchard-discovery', '2026-11-09', '2026-11-16', 'per_day', 240, FALSE, NULL, 'ana', '2026-10-26 14:00:00', 'ana', '2026-10-26 14:00:00'), ('b09', 'maya', 'orchard-design', '2026-11-30', '2026-12-21', 'per_week', 1440, FALSE, NULL, 'ana', '2026-10-26 14:00:00', 'ana', '2026-10-26 14:00:00'), ('b10', 'jo', 'orchard-design', '2026-11-30', '2026-12-07', 'per_day', 480, FALSE, NULL, 'ana', '2026-10-26 14:00:00', 'ana', '2026-10-26 14:00:00'), ('b11', 'maya', 'lumen-identity', '2026-11-30', '2026-12-14', 'per_week', 1200, TRUE, NULL, 'ana', '2026-10-26 14:00:00', 'ana', '2026-10-26 14:00:00'), ('b12', 'priya', 'lumen-identity', '2026-11-30', '2026-12-14', 'per_week', 600, TRUE, NULL, 'ana', '2026-10-26 14:00:00', 'ana', '2026-10-26 14:00:00'), ('b13', 'ben', 'studio-refresh', '2026-11-16', '2026-12-07', 'per_week', 480, FALSE, NULL, 'ana', '2026-10-26 14:00:00', 'ana', '2026-10-26 14:00:00'), ('b14', 'priya', 'studio-refresh', '2026-11-16', '2026-11-23', 'per_day', 120, FALSE, NULL, 'ana', '2026-10-26 14:00:00', 'ana', '2026-10-26 14:00:00'), ('b15', 'priya', 'pinecrest-concepts', '2026-11-30', '2026-12-07', 'per_week', 600, TRUE, NULL, 'ana', '2026-10-26 14:00:00', 'ana', '2026-10-26 14:00:00');